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
037b00de
Commit
037b00de
authored
Jul 25, 2018
by
antirez
Browse files
Remove useless conditional from emptyDb().
Related to #4852.
parent
0e97ae79
Changes
1
Show whitespace changes
Inline
Side-by-side
src/db.c
View file @
037b00de
...
...
@@ -346,7 +346,6 @@ long long emptyDb(int dbnum, int flags, void(callback)(void*)) {
}
for
(
int
j
=
startdb
;
j
<=
enddb
;
j
++
)
{
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