mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
freeDictIfNeeded when kvstoreEmpty (#13098)
just like `kvstoreDictDelete`, we need check `freeDictIfNeeded` when `kvstoreEmpty`.
This commit is contained in:
parent
a7abc2f067
commit
cc9fbd270e
@ -277,6 +277,7 @@ void kvstoreEmpty(kvstore *kvs, void(callback)(dict*)) {
|
||||
if (metadata->rehashing_node)
|
||||
metadata->rehashing_node = NULL;
|
||||
dictEmpty(d, callback);
|
||||
freeDictIfNeeded(kvs, didx);
|
||||
}
|
||||
|
||||
listEmpty(kvs->rehashing);
|
||||
|
Loading…
Reference in New Issue
Block a user