1. 21 3月, 2012 3 次提交
    • A
      Correctly create shared.oomerr as an sds string. · b22eab8f
      antirez 提交于
      b22eab8f
    • A
      DEBUG should not be flagged as w otherwise we can not call DEBUG DIGEST and... · 7dcdd281
      antirez 提交于
      DEBUG should not be flagged as w otherwise we can not call DEBUG DIGEST and other commands against read only slaves.
      7dcdd281
    • A
      Support for read-only slaves. Semantical fixes. · f3fd419f
      antirez 提交于
      This commit introduces support for read only slaves via redis.conf and CONFIG GET/SET commands. Also various semantical fixes are implemented here:
      
      1) MULTI/EXEC with only read commands now work where the server is into a state where writes (or commands increasing memory usage) are not allowed. Before this patch everything inside a transaction would fail in this conditions.
      
      2) Scripts just calling read-only commands will work against read only
      slaves, when the server is out of memory, or when persistence is into an
      error condition. Before the patch EVAL always failed in this condition.
      f3fd419f
  2. 20 3月, 2012 1 次提交
  3. 19 3月, 2012 2 次提交
  4. 17 3月, 2012 1 次提交
  5. 16 3月, 2012 1 次提交
    • A
      Fix for issue #391. · c9d3dda2
      antirez 提交于
      Use a simple protocol between clientsCron() and helper functions to
      understand if the client is still valind and clientsCron() should
      continue processing or if the client was freed and we should continue
      with the next one.
      c9d3dda2
  6. 14 3月, 2012 3 次提交
  7. 08 3月, 2012 3 次提交
    • A
      Instantaneous ops/sec figure in INFO output. · 250e7f69
      antirez 提交于
      250e7f69
    • A
      run_id added to INFO output. · 91d664d6
      antirez 提交于
      The Run ID is a field that identifies a single execution of the Redis
      server. It can be useful for many purposes as it makes easy to detect if
      the instance we are talking about is the same, or if it is a different
      one or was rebooted. An application of run_id will be in the partial
      synchronization of replication, where a slave may request a partial sync
      from a given offset only if it is talking with the same master. Another
      application is in failover and monitoring scripts.
      91d664d6
    • A
      By default Redis refuses writes with an error if the latest BGSAVE failed (and... · 4d3bbf35
      antirez 提交于
      By default Redis refuses writes with an error if the latest BGSAVE failed (and at least one save point is configured). However people having good monitoring systems may prefer a server that continues to work, since they are notified that there are problems by their monitoring systems. This commit implements the ability to turn the feature on or off via redis.conf and CONFIG SET.
      4d3bbf35
  8. 07 3月, 2012 3 次提交
  9. 29 2月, 2012 3 次提交
  10. 28 2月, 2012 1 次提交
  11. 08 2月, 2012 2 次提交
  12. 06 2月, 2012 2 次提交
  13. 04 2月, 2012 2 次提交
    • A
      This fixes issue #327, is a very complex fix (unfortunately), details: · f6b32c14
      antirez 提交于
      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
    • A
      Use less memory when emitting the protocol, by using more shared objects for... · 355f8591
      antirez 提交于
      Use less memory when emitting the protocol, by using more shared objects for commonly emitted parts of the protocol.
      355f8591
  14. 02 2月, 2012 3 次提交
  15. 01 2月, 2012 1 次提交
    • A
      SORT is now more deterministic: does not accept to compare by score items that... · 2c861050
      antirez 提交于
      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
  16. 31 1月, 2012 2 次提交
  17. 24 1月, 2012 1 次提交
  18. 23 1月, 2012 2 次提交
  19. 22 1月, 2012 2 次提交
  20. 20 1月, 2012 1 次提交
  21. 12 1月, 2012 1 次提交