1. 16 9月, 2014 4 次提交
    • A
      Better truncated AOF loading tests. · 5e38bc38
      antirez 提交于
      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.
      5e38bc38
    • A
      Seek at the end of AOF after truncate call. · 01f7db60
      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.
      01f7db60
    • A
      On AOF end of file, truncate the AOF to last valid command. · 9faeff02
      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.
      9faeff02
    • A
      Don't propagate SAVE. · fbd9dc60
      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.
      fbd9dc60
  2. 12 9月, 2014 4 次提交
  3. 10 9月, 2014 6 次提交
  4. 08 9月, 2014 7 次提交
  5. 04 9月, 2014 2 次提交
    • M
      Return empty string if GETRANGE of empty string · 667e2991
      Matt Stancliff 提交于
      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.
      667e2991
    • M
      Increase size of range request in getrange · 4284b072
      Matt Stancliff 提交于
      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
      4284b072
  6. 01 9月, 2014 4 次提交
  7. 27 8月, 2014 13 次提交