1. 01 7月, 2018 1 次提交
  2. 29 5月, 2018 3 次提交
    • A
      3d5e2c62
    • A
      Don't expire keys while loading RDB from AOF preamble. · 49147f36
      antirez 提交于
      The AOF tail of a combined RDB+AOF is based on the premise of applying
      the AOF commands to the exact state that there was in the server while
      the RDB was persisted. By expiring keys while loading the RDB file, we
      change the state, so applying the AOF tail later may change the state.
      
      Test case:
      
      * Time1: SET a 10
      * Time2: EXPIREAT a $time5
      * Time3: INCR a
      * Time4: PERSIT A. Start bgrewiteaof with RDB preamble. The value of a is 11 without expire time.
      * Time5: Restart redis from the RDB+AOF: consistency violation.
      
      Thanks to @soloestoy for providing the patch.
      Thanks to @trevor211 for the original issue report and the initial fix.
      
      Check issue #4950 for more info.
      49147f36
    • W
      Fix rdb save by allowing dumping of expire keys, so that when · 2a887bd5
      WuYunlong 提交于
      we add a new slave, and do a failover, eighter by manual or
      not, other local slaves will delete the expired keys properly.
      2a887bd5
  3. 25 5月, 2018 15 次提交
  4. 24 5月, 2018 8 次提交
  5. 23 5月, 2018 3 次提交
    • A
      de4b6cb2
    • A
      Sentinel: fix delay in detecting ODOWN. · 8631e647
      antirez 提交于
      See issue #2819 for details. The gist is that when we want to send INFO
      because we are over the time, we used to send only INFO commands, no
      longer sending PING commands. However if a master fails exactly when we
      are about to send an INFO command, the PING times will result zero
      because the PONG reply was already received, and we'll fail to send more
      PINGs, since we try only to send INFO commands: the failure detector
      will delay until the connection is closed and re-opened for "long
      timeout".
      
      This commit changes the logic so that we can send the three kind of
      messages regardless of the fact we sent another one already in the same
      code path. It could happen that we go over the message limit for the
      link by a few messages, but this is not significant. However now we'll
      not introduce delays in sending commands just because there was
      something else to send at the same time.
      8631e647
    • S
      Merge pull request #4908 from soloestoy/aof-rdb-preamble-compatible-checksum-no · 1ab3c823
      Salvatore Sanfilippo 提交于
      AOF & RDB: be compatible with rdbchecksum no
      1ab3c823
  6. 22 5月, 2018 2 次提交
  7. 21 5月, 2018 3 次提交
  8. 19 5月, 2018 1 次提交
    • D
      Fix negtive repeat command value issue. · b2762f1f
      dejun.xdj 提交于
      If command like "-1 set a b" is sent with redis-cli, it will cause a deadless loop. So some repeat value checking logic is added to avoid this.
      b2762f1f
  9. 18 5月, 2018 2 次提交
  10. 17 5月, 2018 2 次提交