Commit 53596967 authored by antirez's avatar antirez
Browse files

Fixed a bug in the emptyDb() new implementation.

parent ecdbc333
...@@ -263,7 +263,7 @@ long long emptyDb(int dbnum, int flags, void(callback)(void*)) { ...@@ -263,7 +263,7 @@ long long emptyDb(int dbnum, int flags, void(callback)(void*)) {
} }
for (j = 0; j < server.dbnum; j++) { 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); removed += dictSize(server.db[j].dict);
if (async) { if (async) {
emptyDbAsync(&server.db[j]); emptyDbAsync(&server.db[j]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment