1. 12 2月, 2013 4 次提交
    • A
      PSYNC: work in progress, preview #2, rebased to unstable. · 700e5eb4
      antirez 提交于
      700e5eb4
    • A
      Use the new unified protocol to send SELECT to slaves. · 4d8655cf
      antirez 提交于
      SELECT was still transmitted to slaves using the inline protocol, that
      is conceived mostly for humans to type into telnet sessions, and is
      notably not understood by redis-cli --slave.
      
      Now the new protocol is used instead.
      4d8655cf
    • A
      Use replicationFeedSlaves() to send PING to slaves. · 01c21f99
      antirez 提交于
      A Redis master sends PING commands to slaves from time to time: doing
      this ensures that even if absence of writes, the master->slave channel
      remains active and the slave can feel the master presence, instead of
      closing the connection for timeout.
      
      This commit changes the way PINGs are sent to slaves in order to use the
      standard interface used to replicate all the other commands, that is,
      the function replicationFeedSlaves().
      
      With this change the stream of commands sent to every slave is exactly
      the same regardless of their exact state (Transferring RDB for first
      synchronization or slave already online). With the previous
      implementation the PING was only sent to online slaves, with the result
      that the output stream from master to slaves was not identical for all
      the slaves: this is a problem if we want to implement partial resyncs in
      the future using a global replication stream offset.
      
      TL;DR: this commit should not change the behaviour in practical terms,
      but is just something in preparation for partial resynchronization
      support.
      01c21f99
    • A
      Emit SELECT to slaves in a centralized way. · 5a35e485
      antirez 提交于
      Before this commit every Redis slave had its own selected database ID
      state. This was not actually useful as the emitted stream of commands
      is identical for all the slaves.
      
      Now the the currently selected database is a global state that is set to
      -1 when a new slave is attached, in order to force the SELECT command to
      be re-emitted for all the slaves.
      
      This change is useful in order to implement replication partial
      resynchronization in the future, as makes sure that the stream of
      commands received by slaves, including SELECT commands, are exactly the
      same for every slave connected, at any time.
      
      In this way we could have a global offset that can identify a specific
      piece of the master -> slaves stream of commands.
      5a35e485
  2. 11 2月, 2013 8 次提交
  3. 08 2月, 2013 2 次提交
  4. 05 2月, 2013 7 次提交
  5. 04 2月, 2013 2 次提交
  6. 29 1月, 2013 2 次提交
  7. 28 1月, 2013 13 次提交
  8. 23 1月, 2013 1 次提交
    • A
      Lua struct library updated to version 0.2. · 153766e1
      antirez 提交于
      There was a bug in the previous version of this library that caused a
      crash under the circumstances described in issue #901.
      
      The newer version of the library appears to be fixed (I tested it
      manually with valgrind and everything seems fine now).
      
      For more information about this library please visit this web site:
      
          http://www.inf.puc-rio.br/~roberto/struct/
      153766e1
  9. 22 1月, 2013 1 次提交