1. 30 Nov, 2017 2 commits
    • antirez's avatar
      PSYNC2: just store script bodies into RDB. · eeac1d35
      antirez authored
      Related to #4483. As suggested by @soloestoy, we can retrieve the SHA1
      from the body. Given that in the new implementation using AUX fields we
      ended copying around a lot to create new objects and strings, extremize
      such concept and trade CPU for space inside the RDB file.
      eeac1d35
    • antirez's avatar
      PSYNC2: luaCreateFunction() should handle NULL client parameter. · fb0441a8
      antirez authored
      See #4483. This is needed because luaCreateFunction() is now called
      from RDB loading code outside a client context.
      fb0441a8
  2. 23 Nov, 2017 1 commit
  3. 24 Jul, 2017 1 commit
  4. 30 Jun, 2017 1 commit
  5. 18 Apr, 2017 1 commit
  6. 05 May, 2016 1 commit
  7. 02 Mar, 2016 1 commit
  8. 08 Jan, 2016 2 commits
    • antirez's avatar
      Scripting: handle trailing comments. · f43c794b
      antirez authored
      This fix, provided by Paul Kulchenko (@pkulchenko), allows the Lua
      scripting engine to evaluate statements with a trailing comment like the
      following one:
      
          EVAL "print() --comment" 0
      
      Lua can't parse the above if the string does not end with a newline, so
      now a final newline is always added automatically. This does not change
      the SHA1 of scripts since the SHA1 is computed on the body we pass to
      EVAL, without the other code we add to register the function.
      
      Close #2951.
      f43c794b
    • antirez's avatar
      Lua debugger: fix crash printing nested or deep objects. · a75aa4bf
      antirez authored
      Example of offending code:
      
      > script debug yes
      OK
      > eval "local a = {1} a[1] = a\nprint(a)" 0
      1) * Stopped at 1, stop reason = step over
      2) -> 1   local a = {1} a[1] = a
      > next
      1) * Stopped at 2, stop reason = step over
      2) -> 2   print(a)
      > print
      
      ... server crash ...
      
      Close #2955.
      a75aa4bf
  9. 16 Dec, 2015 4 commits
  10. 27 Nov, 2015 1 commit
  11. 18 Nov, 2015 1 commit
  12. 17 Nov, 2015 24 commits