1. 04 Dec, 2017 2 commits
    • antirez's avatar
      Remove useless variable check from luaCreateFunction(). · 85b24770
      antirez authored
      The block is already inside if (allow_dup).
      85b24770
    • antirez's avatar
      Fix issue #4505, Lua RDB AUX field loading of existing scripts. · a945e5c0
      antirez authored
      Unfortunately, as outlined by @soloestoy in #4505, "lua" AUX RDB field
      loading in case of duplicated script was still broken. This commit fixes
      this problem and also a memory leak introduced by the past commit.
      
      Note that now we have a regression test able to duplicate the issue, so
      this commit was actually tested against the regression. The original PR
      also had a valid fix, but I prefer to hide the details of scripting.c
      outside scripting.c, and later "SCRIPT LOAD" should also be able to use
      the function luaCreateFunction() instead of redoing the work.
      a945e5c0
  2. 01 Dec, 2017 1 commit
  3. 30 Nov, 2017 3 commits
  4. 23 Nov, 2017 1 commit
  5. 24 Jul, 2017 1 commit
  6. 30 Jun, 2017 1 commit
  7. 18 Apr, 2017 1 commit
  8. 05 May, 2016 1 commit
  9. 02 Mar, 2016 1 commit
  10. 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
  11. 16 Dec, 2015 4 commits
  12. 27 Nov, 2015 1 commit
  13. 18 Nov, 2015 1 commit
  14. 17 Nov, 2015 20 commits