Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
30dd89b6
Commit
30dd89b6
authored
May 19, 2010
by
antirez
Browse files
Fix for 'CONFIG SET appendonly no'
parent
2e5eb04e
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
30dd89b6
...
@@ -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;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment