mirror of
https://github.com/fluencelabs/redis
synced 2025-03-31 23:01:03 +00:00
Fixed a bug in the emptyDb() new implementation.
This commit is contained in:
parent
ecdbc333a3
commit
5359696796
2
src/db.c
2
src/db.c
@ -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]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user