1. 14 Sep, 2015 1 commit
    • antirez's avatar
      MOVE now can move TTL metadata as well. · 37843be9
      antirez authored
      MOVE was not able to move the TTL: when a key was moved into a different
      database number, it became persistent like if PERSIST was used.
      
      In some incredible way (I guess almost nobody uses Redis MOVE) this bug
      remained unnoticed inside Redis internals for many years.
      Finally Andy Grunwald discovered it and opened an issue.
      
      This commit fixes the bug and adds a regression test.
      
      Close #2765.
      37843be9
  2. 05 Aug, 2015 4 commits
  3. 19 May, 2015 1 commit
  4. 15 May, 2015 1 commit
  5. 27 Mar, 2015 1 commit
  6. 10 Feb, 2015 1 commit
    • antirez's avatar
      Faster memory efficiency test. · d4047f72
      antirez authored
      This test on Linux was extremely slow, since in Tcl we can't enable
      easily tcp-nodelay, so the busy loop used to take *a lot* with bigger
      writes. Fixed using pipelining.
      d4047f72
  7. 11 Dec, 2014 1 commit
    • Matt Stancliff's avatar
      Fix zero-ordering SORT when called against lists · e945a546
      Matt Stancliff authored
      People mostly use SORT against lists, but our prior
      behavior was pretending lists were an unordered bag
      requiring a forced-sort when no sort was requested.
      
      We can just use the native list ordering to ensure
      consistency across replicaion and scripting calls.
      
      Closes #2079
      Closes #545 (again)
      e945a546
  8. 03 Dec, 2014 1 commit
  9. 28 Nov, 2014 3 commits
  10. 24 Nov, 2014 1 commit
  11. 14 Nov, 2014 4 commits
    • antirez's avatar
      b19e7457
    • Matt Stancliff's avatar
      Lua: add cmsgpack scripting tests · 5d8c88fd
      Matt Stancliff authored
      Basically: test to make sure we can load cmsgpack
      and do some sanity checks to make sure pack/unpack works
      properly.  We also have a bonus test for circular encoding
      and decoding because I was curious how it worked.
      5d8c88fd
    • Matt Stancliff's avatar
      Lua: add cjson scripting test · 2828bbd5
      Matt Stancliff authored
      Two simple decode tests added mainly to check that
      the 'cjson' global gets registered and is usable.
      2828bbd5
    • Matt Stancliff's avatar
      Lua: Add bitop · 1e501d9f
      Matt Stancliff authored
      A few people have written custom C commands because bit
      manipulation isn't exposed through Lua.  Let's give
      them Mike Pall's bitop.
      
      This adds bitop 1.0.2 (2012-05-08) from http://bitop.luajit.org/
      
      bitop is imported as "bit" into the global namespace.
      
      New Lua commands: bit.tobit, bit.tohex, bit.bnot, bit.band, bit.bor, bit.bxor,
      bit.lshift, bit.rshift, bit.arshift, bit.rol, bit.ror, bit.bswap
      
      Verification of working (the asserts would abort on error, so (nil) is correct):
      127.0.0.1:6379> eval "assert(bit.tobit(1) == 1); assert(bit.band(1) == 1); assert(bit.bxor(1,2) == 3); assert(bit.bor(1,2,4,8,16,32,64,128) == 255)" 0
      (nil)
      127.0.0.1:6379> eval 'assert(0x7fffffff == 2147483647, "broken hex literals"); assert(0xffffffff == -1 or 0xffffffff == 2^32-1, "broken hex literals"); assert(tostring(-1) == "-1", "broken tostring()"); assert(tostring(0xffffffff) == "-1" or tostring(0xffffffff) == "4294967295", "broken tostring()")' 0
      (nil)
      
      Tests also integrated into the scripting tests and can be run with:
      ./runtest --single unit/scripting
      
      Tests are excerpted from `bittest.lua` included in the bitop distribution.
      1e501d9f
  12. 29 Oct, 2014 1 commit
  13. 06 Oct, 2014 4 commits
  14. 16 Sep, 2014 1 commit
    • antirez's avatar
      Better truncated AOF loading tests. · 5e38bc38
      antirez authored
      Now there are tests to write more data after loading a truncated AOF,
      testing that the loaded data is correct, appending more, and testing
      again.
      5e38bc38
  15. 08 Sep, 2014 4 commits
  16. 01 Sep, 2014 1 commit
  17. 27 Aug, 2014 5 commits
  18. 22 Jul, 2014 1 commit
  19. 18 Jul, 2014 2 commits
  20. 10 Jul, 2014 2 commits