mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
Fix re-enabled again, I forgot to check if VM was enabled before calling handleClientsBlockedOnSwappedKey()
This commit is contained in:
parent
155fb4b45e
commit
da14590bd9
2
src/db.c
2
src/db.c
@ -127,7 +127,7 @@ int dbDelete(redisDb *db, robj *key) {
|
|||||||
* deleting the key will kill the I/O thread bringing the key from swap
|
* deleting the key will kill the I/O thread bringing the key from swap
|
||||||
* to memory, so the client will never be notified and unblocked if we
|
* to memory, so the client will never be notified and unblocked if we
|
||||||
* don't do it now. */
|
* don't do it now. */
|
||||||
/* handleClientsBlockedOnSwappedKey(db,key); */
|
if (server.vm_enabled) handleClientsBlockedOnSwappedKey(db,key);
|
||||||
/* Deleting an entry from the expires dict will not free the sds of
|
/* Deleting an entry from the expires dict will not free the sds of
|
||||||
* the key, because it is shared with the main dictionary. */
|
* the key, because it is shared with the main dictionary. */
|
||||||
if (dictSize(db->expires) > 0) dictDelete(db->expires,key->ptr);
|
if (dictSize(db->expires) > 0) dictDelete(db->expires,key->ptr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user