1. 19 Sep, 2014 4 commits
  2. 18 Sep, 2014 5 commits
  3. 17 Sep, 2014 2 commits
  4. 16 Sep, 2014 4 commits
    • antirez's avatar
      Better truncated AOF loading tests. · a2c740ea
      antirez authored
      Now there are tests to write more data after loading a truncated AOF,
      testing that the loaded data is correct, appending more, and testing
      again.
      a2c740ea
    • antirez's avatar
      Seek at the end of AOF after truncate call. · 878c089e
      antirez authored
      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
    • antirez's avatar
      On AOF end of file, truncate the AOF to last valid command. · 0ba8fe1a
      antirez authored
      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
    • antirez's avatar
      Don't propagate SAVE. · 046a00a0
      antirez authored
      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
  5. 15 Sep, 2014 2 commits
  6. 11 Sep, 2014 2 commits
    • antirez's avatar
      f5efa9bb
    • antirez's avatar
      Sentinel: fix computation of total number of votes. · f4be6f16
      antirez authored
      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
  7. 10 Sep, 2014 2 commits
  8. 09 Sep, 2014 1 commit
  9. 08 Sep, 2014 7 commits
  10. 04 Sep, 2014 5 commits
  11. 03 Sep, 2014 1 commit
  12. 02 Sep, 2014 2 commits
    • Matt Stancliff's avatar
      Return empty string if GETRANGE of empty string · b20df972
      Matt Stancliff authored
      Previously, GETRANGE of a key containing nothing ("")
      would allocate a large (size_t)-1 return value causing
      crashes on 32bit builds when it tried to allocate the
      4 GB return string.
      b20df972
    • Matt Stancliff's avatar
      Increase size of range request in getrange · f0e306f4
      Matt Stancliff authored
      32 bit builds don't have a big enough long to capture
      the same range as a 64 bit build.  If we use "long long"
      we get proper size limits everywhere.
      
      Also updates size of unsigned comparison to fit new size of `end`.
      
      Fixes #1981
      f0e306f4
  13. 01 Sep, 2014 3 commits