1. 30 8月, 2012 4 次提交
    • A
      Redis 2.4.17 · 03a851e5
      antirez 提交于
      03a851e5
    • A
      62c8fa38
    • A
      Sentinel: Redis-side support for slave priority. · dfdbb227
      antirez 提交于
      A Redis slave can now be configured with a priority, that is an integer
      number that is shown in INFO output and can be get and set using the
      redis.conf file or the CONFIG GET/SET command.
      
      This field is used by Sentinel during slave election. A slave with lower
      priority is preferred. A slave with priority zero is never elected (and
      is considered to be impossible to elect even if it is the only slave
      available).
      
      A next commit will add support in the Sentinel side as well.
      dfdbb227
    • A
      run_id added to INFO output (backported from 2.6). · 96fbd433
      antirez 提交于
      This change is required to make Redis 2.4 compatible with Sentinel.
      
      The Run ID is a field that identifies a single execution of the Redis
      server. It can be useful for many purposes as it makes easy to detect if
      the instance we are talking about is the same, or if it is a different
      one or was rebooted. An application of run_id will be in the partial
      synchronization of replication, where a slave may request a partial sync
      from a given offset only if it is talking with the same master. Another
      application is in failover and monitoring scripts.
      96fbd433
  2. 22 8月, 2012 2 次提交
  3. 01 8月, 2012 1 次提交
  4. 09 7月, 2012 3 次提交
    • J
      95bf36fc
    • A
      Typo in comment. · 0332a321
      antirez 提交于
      0332a321
    • A
      REPLCONF internal command introduced. · b998ebe9
      antirez 提交于
      The REPLCONF command is an internal command (not designed to be directly
      used by normal clients) that allows a slave to set some replication
      related state in the master before issuing SYNC to start the
      replication.
      
      The initial motivation for this command, and the only reason currently
      it is used by the implementation, is to let the slave instance
      communicate its listening port to the slave, so that the master can
      show all the slaves with their listening ports in the "replication"
      section of the INFO output.
      
      This allows clients to auto discover and query all the slaves attached
      into a master.
      
      Currently only a single option of the REPLCONF command is supported, and
      it is called "listening-port", so the slave now starts the replication
      process with something like the following chat:
      
          REPLCONF listening-prot 6380
          SYNC
      
      Note that this works even if the master is an older version of Redis and
      does not understand REPLCONF, because the slave ignores the REPLCONF
      error.
      
      In the future REPLCONF can be used for partial replication and other
      replication related features where there is the need to exchange
      information between master and slave.
      
      NOTE: This commit also fixes a bug: the INFO outout already carried
      information about slaves, but the port was broken, and was obtained
      with getpeername(2), so it was actually just the ephemeral port used
      by the slave to connect to the master as a client.
      b998ebe9
  5. 21 6月, 2012 1 次提交
  6. 02 6月, 2012 4 次提交
  7. 23 5月, 2012 6 次提交
  8. 12 5月, 2012 7 次提交
  9. 11 5月, 2012 2 次提交
  10. 10 5月, 2012 1 次提交
  11. 09 5月, 2012 1 次提交
  12. 02 5月, 2012 1 次提交
  13. 01 5月, 2012 1 次提交
    • P
      Use safe dictionary iterator from KEYS · f2ffb592
      Pieter Noordhuis 提交于
      Every matched key in a KEYS call is checked for expiration. When the key
      is set to expire, the call to `getExpire` will assert that the key also
      exists in the main dictionary. This in turn causes a rehashing step to
      be executed. Rehashing a dictionary when there is an iterator active may
      result in the iterator emitting duplicate entries, or not emitting some
      entries at all. By using a safe iterator, the rehash step is omitted.
      f2ffb592
  14. 30 4月, 2012 5 次提交
  15. 29 4月, 2012 1 次提交