diff options
author | antirez <antirez@gmail.com> | 2015-11-17 13:15:48 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-11-19 22:43:31 +0100 |
commit | 848c92a30ba17f48f5fc4abf7fcd68a630361648 (patch) | |
tree | 844cdaed655fbe554f9285940d157fd11cc77123 | |
parent | 5535784b632f8e7329bb57cbe0a9ca2fc31744e6 (diff) | |
download | redis-848c92a30ba17f48f5fc4abf7fcd68a630361648.tar.gz |
Lua debugger: redis-cli: allow restart after end of session.
-rw-r--r-- | src/redis-cli.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c index a5836b29a..be37a9146 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -1107,7 +1107,9 @@ static void repl(void) { { exit(0); } else if (strcasecmp(argv[0],"restart") == 0) { - if (config.eval_ldb) { + if (config.eval) { + config.eval_ldb = 1; + config.output = OUTPUT_RAW; return; /* Return to evalMode to restart the session. */ } else { printf("Use 'restart' only in Lua debugging mode."); |