Skip to content

Commit

Permalink
Remove useless conditional from emptyDb().
Browse files Browse the repository at this point in the history
Related to redis#4852.
  • Loading branch information
antirez committed Jul 25, 2018
1 parent 1c2352f commit fd174cc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit fd174cc

Please sign in to comment.