1. 14 10月, 2014 1 次提交
  2. 10 10月, 2014 3 次提交
  3. 08 10月, 2014 1 次提交
    • A
      Define different types of RDB childs. · 2df8341c
      antirez 提交于
      We need to remember what is the saving strategy of the current RDB child
      process, since the configuration may be modified at runtime via CONFIG
      SET and still we'll need to understand, when the child exists, what to
      do and for what goal the process was initiated: to create an RDB file
      on disk or to write stuff directly to slave's sockets.
      2df8341c
  4. 07 10月, 2014 2 次提交
  5. 03 10月, 2014 1 次提交
    • A
      INCR: Modify incremented object in-place when possible. · 16559b46
      antirez 提交于
      However we don't try to do this if the integer is already inside a range
      representable with a shared integer.
      
      The performance gain appears to be around ~15% in micro benchmarks,
      however in the long run this also helps to improve locality, so should
      have more, hard to measure, benefits.
      16559b46
  6. 29 9月, 2014 17 次提交
  7. 26 9月, 2014 1 次提交
  8. 25 9月, 2014 1 次提交
    • A
      DEBUG POPULATE two args form implemented. · d4222e6b
      antirez 提交于
      The old DEBUG POPULATE form for automatic creation of test keys is:
      
          DEBUG POPULATE <count>
      
      Now an additional form is available:
      
          DEBUG POPULATE <count> <prefix>
      
      When prefix is not specified, it defaults to "key", so the keys are
      named incrementally from key:0 to key:<count-1>. Otherwise the specified
      prefix is used instead of "key".
      
      The command is useful in order to populate different Redis instances
      with key names guaranteed to don't collide. There are other debugging
      uses, for example it is possible to add additional N keys using a count
      of N and a random prefix at every call.
      d4222e6b
  9. 18 9月, 2014 3 次提交
  10. 17 9月, 2014 2 次提交
  11. 16 9月, 2014 3 次提交
    • A
      Seek at the end of AOF after truncate call. · 878c089e
      antirez 提交于
      It is not clear if files open in append only mode will automatically fix
      their offset after a truncate(2) operation. This commit makes sure that
      we reposition the AOF file descriptor offset at the end of the file
      after a truncated AOF is loaded and trimmed to the last valid command.
      878c089e
    • A
      On AOF end of file, truncate the AOF to last valid command. · 0ba8fe1a
      antirez 提交于
      Recently we introduced the ability to load truncated AOFs, but
      unfortuantely the support was broken since the server, after loading the
      truncated AOF, continues appending to the file that is corrupted at the
      end. The problem is fixed only in the next AOF rewrite.
      
      This commit fixes the issue by truncating the AOF to the last valid
      opcode, and aborting if it is not possible to truncate the file
      correctly.
      0ba8fe1a
    • A
      Don't propagate SAVE. · 046a00a0
      antirez 提交于
      This is a general fix (check that dirty delta is positive) but actually
      should have as the only effect fixing the SAVE propagation to
      AOF and slaves.
      046a00a0
  12. 12 9月, 2014 2 次提交
    • A
      Sentinel sentinelGetLeader() top comment improved. · f5efa9bb
      antirez 提交于
      f5efa9bb
    • A
      Sentinel: fix computation of total number of votes. · f4be6f16
      antirez 提交于
      The code to check the number of voters was never updated to follow the new
      Sentinel specification, so the number of voters was computed using only
      the set of Sentinels that provided a vote.
      
      This means that there is a changing majority on partitions, even if
      usually the issue is not triggered because of the configured quorum
      check (what was broken was the other implicit check that requires anyway
      half of the known sentinels to agree in order to start a failover).
      f4be6f16
  13. 10 9月, 2014 1 次提交
  14. 09 9月, 2014 1 次提交
  15. 08 9月, 2014 1 次提交