summaryrefslogtreecommitdiff
path: root/src/scripting.c
diff options
context:
space:
mode:
authorliangsijian <liangsijian@foxmail.com>2017-07-24 19:20:31 +0800
committerliangsijian <liangsijian@foxmail.com>2017-07-24 19:24:06 +0800
commitffbbe5a720a723148ee364066f08e63528a57376 (patch)
treefdd05646730e8343c2863cb2ac679fd240366c8e /src/scripting.c
parent314043552b3e0ce5f080d0fd2169d5c32f94a222 (diff)
downloadredis-ffbbe5a720a723148ee364066f08e63528a57376.tar.gz
Fix lua ldb command log
Diffstat (limited to 'src/scripting.c')
-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);