summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2017-07-24 14:11:10 +0200
committerGitHub <noreply@github.com>2017-07-24 14:11:10 +0200
commit7c3c472b5e5861787055c74b189e6a8b590e9e81 (patch)
treefdd05646730e8343c2863cb2ac679fd240366c8e
parent314043552b3e0ce5f080d0fd2169d5c32f94a222 (diff)
parentffbbe5a720a723148ee364066f08e63528a57376 (diff)
downloadredis-7c3c472b5e5861787055c74b189e6a8b590e9e81.tar.gz
Merge pull request #4154 from liangsijian/unstable
Fix lua ldb command log
-rw-r--r--src/scripting.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 52fed6ac8..8f8145b2c 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -443,6 +443,7 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
if (j == 10) {
cmdlog = sdscatprintf(cmdlog," ... (%d more)",
c->argc-j-1);
+ break;
} else {
cmdlog = sdscatlen(cmdlog," ",1);
cmdlog = sdscatsds(cmdlog,c->argv[j]->ptr);