From: antirez Date: Fri, 30 Oct 2009 00:11:29 +0000 (+0100) Subject: first fix for append only mode X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/16f9254761332a0f939cb145529d8ce5d55262a5?ds=sidebyside first fix for append only mode --- diff --git a/redis.c b/redis.c index 19abda20..ba7fb6ac 100644 --- a/redis.c +++ b/redis.c @@ -1660,6 +1660,7 @@ static void feedAppendOnlyFile(struct redisCommand *cmd, int dictid, robj **argv snprintf(seldb,sizeof(seldb),"%d",dictid); buf = sdscatprintf(buf,"*2\r\n$6\r\nSELECT\r\n$%d\r\n%s\r\n", strlen(seldb),seldb); + server.appendseldb = dictid; } /* Append the actual command */ buf = sdscatprintf(buf,"*%d\r\n",argc);