From ffbbe5a720a723148ee364066f08e63528a57376 Mon Sep 17 00:00:00 2001 From: liangsijian Date: Mon, 24 Jul 2017 19:20:31 +0800 Subject: [PATCH] Fix lua ldb command log --- src/scripting.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripting.c b/src/scripting.c index 52fed6ac..8f8145b2 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);