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
74b77ff8
Commit
74b77ff8
authored
Oct 17, 2011
by
antirez
Browse files
FLUSHALL will only perform a blocking SAVE if RDB persistence is configured.
parent
15da88c8
Changes
1
Show whitespace changes
Inline
Side-by-side
src/db.c
View file @
74b77ff8
...
@@ -180,7 +180,7 @@ void flushallCommand(redisClient *c) {
...
@@ -180,7 +180,7 @@ void flushallCommand(redisClient *c) {
kill
(
server
.
bgsavechildpid
,
SIGKILL
);
kill
(
server
.
bgsavechildpid
,
SIGKILL
);
rdbRemoveTempFile
(
server
.
bgsavechildpid
);
rdbRemoveTempFile
(
server
.
bgsavechildpid
);
}
}
rdbSave
(
server
.
dbfilename
);
if
(
server
.
saveparamslen
>
0
)
rdbSave
(
server
.
dbfilename
);
server
.
dirty
++
;
server
.
dirty
++
;
}
}
...
...
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