1. 04 Feb, 2012 2 commits
    • antirez's avatar
      This fixes issue #327, is a very complex fix (unfortunately), details: · f6b32c14
      antirez authored
      1) sendReplyToClient() now no longer stops transferring data to a single
      client in the case we are out of memory (maxmemory-wise).
      
      2) in processCommand() the idea of we being out of memory is no longer
      the naive zmalloc_used_memory() > server.maxmemory. To say if we can
      accept or not write queries is up to the return value of
      freeMemoryIfNeeded(), that has full control about that.
      
      3) freeMemoryIfNeeded() now does its math without considering output
      buffers size. But at the same time it can't let the output buffers to
      put us too much outside the max memory limit, so at the same time it
      makes sure there is enough effort into delivering the output buffers to
      the slaves, calling the write handler directly.
      
      This three changes are the result of many tests, I found (partially
      empirically) that is the best way to address the problem, but maybe
      we'll find better solutions in the future.
      f6b32c14
    • antirez's avatar
      Use less memory when emitting the protocol, by using more shared objects for... · 355f8591
      antirez authored
      Use less memory when emitting the protocol, by using more shared objects for commonly emitted parts of the protocol.
      355f8591
  2. 02 Feb, 2012 2 commits
  3. 01 Feb, 2012 1 commit
    • antirez's avatar
      SORT is now more deterministic: does not accept to compare by score items that... · 2c861050
      antirez authored
      SORT is now more deterministic: does not accept to compare by score items that have scores not representing a valid double. Also items with the same score are compared lexycographically. At the same time the scripting side introduced the ability to sort the output of SORT when sort uses the BY <constant> optimization, resulting in no specific ordering. Since in this case the user may use GET, and the result of GET can be null, converted into false as Lua data type, this commit also introduces the ability to sort Lua tables containining false, only if the first (faster) attempt at using just table.sort with a single argument fails.
      2c861050
  4. 31 Jan, 2012 2 commits
  5. 24 Jan, 2012 2 commits
  6. 23 Jan, 2012 1 commit
  7. 20 Jan, 2012 2 commits
  8. 17 Jan, 2012 2 commits
  9. 12 Jan, 2012 1 commit
  10. 31 Dec, 2011 3 commits
  11. 30 Dec, 2011 1 commit
  12. 21 Dec, 2011 6 commits
  13. 15 Dec, 2011 1 commit
  14. 13 Dec, 2011 1 commit
  15. 01 Dec, 2011 1 commit
  16. 24 Nov, 2011 3 commits
  17. 23 Nov, 2011 1 commit
  18. 21 Nov, 2011 1 commit
  19. 18 Nov, 2011 1 commit
  20. 15 Nov, 2011 1 commit
  21. 12 Nov, 2011 1 commit
  22. 11 Nov, 2011 1 commit
  23. 10 Nov, 2011 1 commit
  24. 09 Nov, 2011 1 commit
    • antirez's avatar
      Initial support for key expire times with millisecond resolution. RDB version... · 7dcc10b6
      antirez authored
      Initial support for key expire times with millisecond resolution. RDB version is now 3, new opcoded added for high resolution times. Redis is still able to correctly load RDB version 2. Tests passing but still a work in progress. API to specify milliseconds expires still missing, but the precision of normal expires is now already improved and working.
      7dcc10b6
  25. 08 Nov, 2011 1 commit