mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 23:31:03 +00:00
first fix for append only mode
This commit is contained in:
parent
44b38ef432
commit
16f9254761
1
redis.c
1
redis.c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user