1. 29 Oct, 2014 3 commits
    • antirez's avatar
      Define different types of RDB childs. · 81abd1e1
      antirez authored
      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.
      81abd1e1
    • antirez's avatar
      1e633f21
    • antirez's avatar
      Replication: better way to send a preamble before RDB payload. · ff8a3baa
      antirez authored
      During the replication full resynchronization process, the RDB file is
      transfered from the master to the slave. However there is a short
      preamble to send, that is currently just the bulk payload length of the
      file in the usual Redis form $..length..<CR><LF>.
      
      This preamble used to be sent with a direct write call, assuming that
      there was alway room in the socket output buffer to hold the few bytes
      needed, however this does not scale in case we'll need to send more
      stuff, and is not very robust code in general.
      
      This commit introduces a more general mechanism to send a preamble up to
      2GB in size (the max length of an sds string) in a non blocking way.
      ff8a3baa
  2. 06 Oct, 2014 28 commits
  3. 22 Sep, 2014 1 commit
  4. 19 Sep, 2014 2 commits
  5. 16 Sep, 2014 5 commits
    • antirez's avatar
      Redis 2.8.16. · a6953496
      antirez authored
      a6953496
    • antirez's avatar
      Better truncated AOF loading tests. · 5e38bc38
      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.
      5e38bc38
    • antirez's avatar
      Seek at the end of AOF after truncate call. · 01f7db60
      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.
      01f7db60
    • antirez's avatar
      On AOF end of file, truncate the AOF to last valid command. · 9faeff02
      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.
      9faeff02
    • antirez's avatar
      Don't propagate SAVE. · fbd9dc60
      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.
      fbd9dc60
  6. 12 Sep, 2014 1 commit