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
fd174cca
Commit
fd174cca
authored
Jul 25, 2018
by
antirez
Browse files
Remove useless conditional from emptyDb().
Related to #4852.
parent
1c2352f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
fd174cca
...
@@ -346,7 +346,6 @@ long long emptyDb(int dbnum, int flags, void(callback)(void*)) {
...
@@ -346,7 +346,6 @@ long long emptyDb(int dbnum, int flags, void(callback)(void*)) {
}
}
for (int j = startdb; j <= enddb; j++) {
for (int j = startdb; j <= enddb; j++) {
if
(
dbnum
!=
-
1
&&
dbnum
!=
j
)
continue
;
removed += dictSize(server.db[j].dict);
removed += dictSize(server.db[j].dict);
if (async) {
if (async) {
emptyDbAsync(&server.db[j]);
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