]> git.saurik.com Git - redis.git/commitdiff
first fix for append only mode
authorantirez <antirez@gmail.com>
Fri, 30 Oct 2009 00:11:29 +0000 (01:11 +0100)
committerantirez <antirez@gmail.com>
Fri, 30 Oct 2009 00:11:29 +0000 (01:11 +0100)
redis.c

diff --git a/redis.c b/redis.c
index 19abda2067bf608efcfb4234d17105fe92dbf428..ba7fb6acba18ed3443e32fa5ec9eaeda70604edf 100644 (file)
--- 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);