Commit 30dd89b6 authored by antirez's avatar antirez
Browse files

Fix for 'CONFIG SET appendonly no'

parent 2e5eb04e
...@@ -8738,11 +8738,12 @@ static void stopAppendOnly(void) { ...@@ -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;
} }
} }
......
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