mirror of
https://github.com/fluencelabs/redis
synced 2025-03-25 11:51:03 +00:00
Fix for 'CONFIG SET appendonly no'
This commit is contained in:
parent
2e5eb04e50
commit
30dd89b6b7
5
redis.c
5
redis.c
@ -8738,11 +8738,12 @@ static void stopAppendOnly(void) {
|
|||||||
if (server.bgsavechildpid != -1) {
|
if (server.bgsavechildpid != -1) {
|
||||||
int statloc;
|
int statloc;
|
||||||
|
|
||||||
kill(server.bgsavechildpid,SIGKILL);
|
if (kill(server.bgsavechildpid,SIGKILL) != -1)
|
||||||
wait3(&statloc,0,NULL);
|
wait3(&statloc,0,NULL);
|
||||||
/* reset the buffer accumulating changes while the child saves */
|
/* reset the buffer accumulating changes while the child saves */
|
||||||
sdsfree(server.bgrewritebuf);
|
sdsfree(server.bgrewritebuf);
|
||||||
server.bgrewritebuf = sdsempty();
|
server.bgrewritebuf = sdsempty();
|
||||||
|
server.bgsavechildpid = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user