Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | PSYNC2: luaCreateFunction() should handle NULL client parameter. | antirez | 2017-11-29 | 1 | -5/+10 |
| | | | | | See #4483. This is needed because luaCreateFunction() is now called from RDB loading code outside a client context. | ||||
* | Nested MULTI/EXEC may replicate in different cases. | Yossi Gottlieb | 2017-11-22 | 1 | -0/+8 |
| | | | | | | | For example: 1. A module command called within a MULTI section. 2. A Lua script with replicate_commands() called within a MULTI section. 3. A module command called from a Lua script in the above context. | ||||
* | Fix lua ldb command log | liangsijian | 2017-07-24 | 1 | -0/+1 |
| | |||||
* | Fix abort typo in Lua debugger help screen. | antirez | 2017-06-30 | 1 | -1/+1 |
| | |||||
* | Set lua-time-limit default value at safe place. | antirez | 2017-04-11 | 1 | -1/+0 |
| | | | | | | Otherwise, as it was, it will overwrite whatever the user set. Close #3703. | ||||
* | Merge pull request #732 from evilpacket/remove_dofile | Salvatore Sanfilippo | 2016-05-08 | 1 | -0/+2 |
|\ | | | | | Removes dofile() from Lua | ||||
| * | Removed dofile() from Lua | Adam Baldwin | 2012-10-25 | 1 | -0/+2 |
| | | |||||
* | | Cluster: don't check scripts key slots during AOF loading. | antirez | 2016-05-05 | 1 | -2/+4 |
| | | |||||
* | | Merge pull request #2956 from pkulchenko/global-protection-msg-typo | Salvatore Sanfilippo | 2016-05-05 | 1 | -1/+1 |
|\ \ | | | | | | | Update global protection error message | ||||
| * | | Update global protection error message to fix a typo. | Paul Kulchenko | 2015-12-15 | 1 | -1/+1 |
| | | | |||||
* | | | Fix INFO commandstats reporting when argv is rewritten. | antirez | 2016-03-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | We want to report the original command in the stats, for example GEOADD, even when what is actually executed is the ZADD implementation. | ||||
* | | | Scripting: handle trailing comments. | antirez | 2016-01-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | | Lua debugger: fix crash printing nested or deep objects. | antirez | 2016-01-08 | 1 | -4/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | | Merge pull request #2954 from pkulchenko/debug-table-pretty-printing | Salvatore Sanfilippo | 2015-12-22 | 1 | -1/+2 |
|\ \ \ | | | | | | | | | Update pretty printing during debugging to generate valid Lua code for tables | ||||
| * | | | Update pretty printing in debugging to generate valid Lua code for tables. | Paul Kulchenko | 2015-12-15 | 1 | -1/+2 |
| |/ / | |||||
* | | | Merge pull request #2957 from pkulchenko/debug-userdata-pretty-printing | Salvatore Sanfilippo | 2015-12-22 | 1 | -2/+2 |
|\ \ \ | | | | | | | | | Update pretty printing in debugging to generate valid Lua code for userdata-like types. | ||||
| * | | | Update pretty printing in debugging to generate valid Lua code for ↵ | Paul Kulchenko | 2015-12-15 | 1 | -2/+2 |
| |/ / | | | | | | | | | | userdata-like types. | ||||
* | | | Suppress harmless warnings. | antirez | 2015-12-16 | 1 | -1/+5 |
|/ / | |||||
* | | Revert Lua's `redis.LOG_<level>` to original | Itamar Haber | 2015-11-27 | 1 | -4/+4 |
| | | | | | | Fixes #2898 | ||||
* | | Lua debugger: infinite loop detection.ldb | antirez | 2015-11-18 | 1 | -7/+35 |
| | | |||||
* | | Lua debugger: fix trace command infinite loop. | antirez | 2015-11-17 | 1 | -5/+6 |
| | | | | | | | | Thanks to Itamar Haber for bug report and test case to reproduce. | ||||
* | | Lua debugger: maxlen command implemented. | antirez | 2015-11-17 | 1 | -14/+54 |
| | | | | | | | | Let the user control the replies truncation. | ||||
* | | Lua debugger: trace command implemented. | antirez | 2015-11-17 | 1 | -0/+24 |
| | | |||||
* | | Lua debugger: print without args show all local vars. | antirez | 2015-11-17 | 1 | -5/+34 |
| | | |||||
* | | Lua debugger: default behavior of "list" command changed. | antirez | 2015-11-17 | 1 | -4/+14 |
| | | | | | | | | | | | | Now it lists code around the current position by default. Can list any other part using other arguments, but a new "whole" command was added in order to show the whole source code easily. | ||||
* | | Lua debugging: fix error message for SCRIPT DEBUG. | antirez | 2015-11-17 | 1 | -1/+1 |
| | | | | | | | | | | | | "async" -> "sync". Thanks to Itamar Haber for reporting. | ||||
* | | Lua debugger: reply +OK to SCRIPT DEBUG no. | antirez | 2015-11-17 | 1 | -0/+1 |
| | | | | | | | | Thanks to Itamar Haber for reporting. | ||||
* | | Lua debugger: call wait3() if there are pending forked debugging sessions. | antirez | 2015-11-17 | 1 | -0/+6 |
| | | |||||
* | | Lua debugger: abort implemented. | antirez | 2015-11-17 | 1 | -0/+5 |
| | | |||||
* | | Lua debugger: ldbSendLogs() memory leak fixed. | antirez | 2015-11-17 | 1 | -0/+1 |
| | | |||||
* | | Lua debugger: better support for synchronous mode. | antirez | 2015-11-17 | 1 | -0/+6 |
| | | |||||
* | | Lua debugger: handle forked sessions children during shutdown. | antirez | 2015-11-17 | 1 | -1/+41 |
| | | |||||
* | | Lua debugger: fix help typo, beark -> break. | antirez | 2015-11-17 | 1 | -4/+4 |
| | | |||||
* | | Lua debugger: clear end of session protocol. | antirez | 2015-11-17 | 1 | -0/+4 |
| | | | | | | | | | | | | | | When the debugger exits now it produces an <endsession> tag that informs redis-cli (or other debugging clients) that the session terminated. This way the client knows there is yet another reply to read (the one of the EVAL script itself), and can switch to non-debugging mode ASAP. | ||||
* | | Lua debugger: redis.debug() implemented. | antirez | 2015-11-17 | 1 | -15/+43 |
| | | |||||
* | | Lua debugger: removing breakpoints now works. | antirez | 2015-11-17 | 1 | -1/+1 |
| | | |||||
* | | Lua debugger: redis command implemented. | antirez | 2015-11-17 | 1 | -1/+26 |
| | | |||||
* | | Lua debugger: try to eval as expression first. | antirez | 2015-11-17 | 1 | -4/+13 |
| | | | | | | | | | | | | | | | | | | It's handly to just eval "5+5" without the return and see it printed on the screen as result. However prepending "return" does not always result into valid Lua code. So what we do is to exploit a common Lua community trick of trying to compile with return prepended, and if compilation fails then it's not an expression that can be returned, so we try again without prepending "return". Works great apparently. | ||||
* | | Lua debugger: much better Lua values pretty printer. | antirez | 2015-11-17 | 1 | -16/+69 |
| | | |||||
* | | Lua debugger: print now handles ARGV and KEYS. | antirez | 2015-11-17 | 1 | -2/+10 |
| | | |||||
* | | Lua debugger: added comment about helper functions. | antirez | 2015-11-17 | 1 | -0/+3 |
| | | |||||
* | | Lua debugger: redis.breakpoint() implemented. | antirez | 2015-11-17 | 1 | -2/+27 |
| | | |||||
* | | Lua debugger: output improvements, eval command. | antirez | 2015-11-17 | 1 | -48/+160 |
| | | |||||
* | | Lua debugger: breakpoints. | antirez | 2015-11-17 | 1 | -11/+95 |
| | | |||||
* | | Lua debugger: ability to show local vars content. | antirez | 2015-11-17 | 1 | -7/+85 |
| | | |||||
* | | Lua debugger: log Redis commands. List command. | antirez | 2015-11-17 | 1 | -7/+80 |
| | | |||||
* | | Lua debugger: initial REPL. | antirez | 2015-11-17 | 1 | -18/+154 |
| | | |||||
* | | Lua debugger: foundations implemented. | antirez | 2015-11-17 | 1 | -17/+181 |
| | | |||||
* | | Merge pull request #2848 from badboy/removed-printf | Salvatore Sanfilippo | 2015-11-09 | 1 | -1/+0 |
|\ \ | | | | | | | Remove printf | ||||
| * | | Remove printf | Jan-Erik Rediger | 2015-11-04 | 1 | -1/+0 |
| | | |