Commit 16f92547 authored by antirez's avatar antirez
Browse files

first fix for append only mode

parent 44b38ef4
...@@ -1660,6 +1660,7 @@ static void feedAppendOnlyFile(struct redisCommand *cmd, int dictid, robj **argv ...@@ -1660,6 +1660,7 @@ static void feedAppendOnlyFile(struct redisCommand *cmd, int dictid, robj **argv
snprintf(seldb,sizeof(seldb),"%d",dictid); snprintf(seldb,sizeof(seldb),"%d",dictid);
buf = sdscatprintf(buf,"*2\r\n$6\r\nSELECT\r\n$%d\r\n%s\r\n", buf = sdscatprintf(buf,"*2\r\n$6\r\nSELECT\r\n$%d\r\n%s\r\n",
strlen(seldb),seldb); strlen(seldb),seldb);
server.appendseldb = dictid;
} }
/* Append the actual command */ /* Append the actual command */
buf = sdscatprintf(buf,"*%d\r\n",argc); buf = sdscatprintf(buf,"*%d\r\n",argc);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment