1. 02 Jun, 2018 1 commit
    • WuYunlong's avatar
      Fix DEBUG LOADAOF so that redis-server will not crash unexpectedly · 7d269d5e
      WuYunlong authored
      and will not be inconsistent after we call debug loadaof.
      Before this commit, there were 2 problems:
      
      1, When appendonly is set to no and there is not a appendonly file,
         redis-server will crash if we call DEBUG LOADAOF.
      2, When appendonly is set to no and there is a appendonly file,
         redis-server will hold different data after loading  appendonly
         file.
      7d269d5e
  2. 01 Jun, 2018 2 commits
  3. 31 May, 2018 7 commits
  4. 30 May, 2018 1 commit
  5. 29 May, 2018 3 commits
    • antirez's avatar
    • antirez's avatar
      Don't expire keys while loading RDB from AOF preamble. · 49147f36
      antirez authored
      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
    • WuYunlong's avatar
      Fix rdb save by allowing dumping of expire keys, so that when · 2a887bd5
      WuYunlong authored
      we add a new slave, and do a failover, eighter by manual or
      not, other local slaves will delete the expired keys properly.
      2a887bd5
  6. 27 May, 2018 1 commit
  7. 25 May, 2018 13 commits
  8. 24 May, 2018 11 commits
  9. 23 May, 2018 1 commit