1. 29 Nov, 2017 1 commit
    • antirez's avatar
      PSYNC2: Save Lua scripts state into RDB file. · a8fbcd3b
      antirez authored
      This is currently needed in order to fix #4483, but this can be
      useful in other contexts, so maybe later we may want to remove the
      conditionals and always save/load scripts.
      
      Note that we are using the "lua" AUX field here, in order to guarantee
      backward compatibility of the RDB file. The unknown AUX fields must be
      discarded by past versions of Redis.
      a8fbcd3b
  2. 28 Nov, 2017 13 commits
  3. 27 Nov, 2017 4 commits
  4. 24 Nov, 2017 9 commits
  5. 23 Nov, 2017 3 commits
  6. 22 Nov, 2017 3 commits
  7. 21 Nov, 2017 2 commits
  8. 19 Nov, 2017 1 commit
  9. 08 Nov, 2017 3 commits
  10. 06 Nov, 2017 1 commit
    • antirez's avatar
      Fix saving of zero-length lists. · a1944c3e
      antirez authored
      Normally in modern Redis you can't create zero-len lists, however it's
      possible to load them from old RDB files generated, for instance, using
      Redis 2.8 (see issue #4409). The "Right Thing" would be not loading such
      lists at all, but this requires to hook in rdb.c random places in a not
      great way, for a problem that is at this point, at best, minor.
      
      Here in this commit instead I just fix the fact that zero length lists,
      materialized as quicklists with the first node set to NULL, were
      iterated in the wrong way while they are saved, leading to a crash.
      
      The other parts of the list implementation are apparently able to deal
      with empty lists correctly, even if they are no longer a thing.
      a1944c3e