mirror of
https://github.com/fluencelabs/redis
synced 2025-03-23 02:50:50 +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) {
|
||||
int statloc;
|
||||
|
||||
kill(server.bgsavechildpid,SIGKILL);
|
||||
wait3(&statloc,0,NULL);
|
||||
if (kill(server.bgsavechildpid,SIGKILL) != -1)
|
||||
wait3(&statloc,0,NULL);
|
||||
/* reset the buffer accumulating changes while the child saves */
|
||||
sdsfree(server.bgrewritebuf);
|
||||
server.bgrewritebuf = sdsempty();
|
||||
server.bgsavechildpid = -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user