1. 15 Feb, 2012 4 commits
    • antirez's avatar
      Precision of getClientOutputBufferMemoryUsage() greatily improved, see issue... · 8b182900
      antirez authored
      Precision of getClientOutputBufferMemoryUsage() greatily improved, see issue #327 for more information.
      8b182900
    • antirez's avatar
      freeMemoryIfNeeded() minor refactoring · 35a4761f
      antirez authored
      35a4761f
    • antirez's avatar
      This fixes issue #327, is a very complex fix (unfortunately), details: · c63e1b83
      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.
      c63e1b83
    • antirez's avatar
      Initial version of c->reply_bytes implementation backported from unstable to... · 05755f5c
      antirez authored
      Initial version of c->reply_bytes implementation backported from unstable to 2.4, in order to apply issue 327 patches.
      05755f5c
  2. 12 Jan, 2012 1 commit
  3. 07 Jan, 2012 2 commits
  4. 19 Dec, 2011 1 commit
  5. 25 Nov, 2011 2 commits
  6. 24 Nov, 2011 2 commits
  7. 21 Nov, 2011 5 commits
  8. 12 Sep, 2011 1 commit
  9. 12 Jul, 2011 1 commit
    • antirez's avatar
      Take a pointer to the relevant entry of the command table in the client... · 63aed54a
      antirez authored
      Take a pointer to the relevant entry of the command table in the client structure. This is generally a more sounding design, simplifies a few functions prototype, and as a side effect fixes a bug related to the conversion of EXPIRE -1 to DEL: before of this fix Redis tried to convert it into an EXPIREAT in the AOF code, regardless of our rewrite of the command.
      63aed54a
  10. 17 Jun, 2011 1 commit
  11. 31 May, 2011 1 commit
  12. 07 May, 2011 1 commit
  13. 29 Apr, 2011 1 commit
  14. 27 Apr, 2011 2 commits
  15. 21 Apr, 2011 4 commits
  16. 18 Apr, 2011 1 commit
  17. 31 Mar, 2011 2 commits
  18. 20 Jan, 2011 1 commit
  19. 17 Jan, 2011 1 commit
  20. 14 Jan, 2011 1 commit
  21. 05 Jan, 2011 1 commit
  22. 15 Dec, 2010 1 commit
  23. 07 Dec, 2010 1 commit
  24. 30 Nov, 2010 2 commits