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
53596967
Commit
53596967
authored
Sep 28, 2015
by
antirez
Browse files
Fixed a bug in the emptyDb() new implementation.
parent
ecdbc333
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
53596967
...
...
@@ -263,7 +263,7 @@ long long emptyDb(int dbnum, int flags, void(callback)(void*)) {
}
for (j = 0; j < server.dbnum; j++) {
if
(
dbnum
!=
1
&&
dbnum
!=
j
)
continue
;
if (dbnum !=
-
1 && dbnum != j) continue;
removed += dictSize(server.db[j].dict);
if (async) {
emptyDbAsync(&server.db[j]);
...
...
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