mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
In dbOverwrite moduleNotifyKeyUnlink should use old val (#8381)
The module notification was using the wrong value.
This commit is contained in:
parent
f28fccd2db
commit
0232778f35
2
src/db.c
2
src/db.c
@ -226,7 +226,7 @@ void dbOverwrite(redisDb *db, robj *key, robj *val) {
|
|||||||
/* Although the key is not really deleted from the database, we regard
|
/* Although the key is not really deleted from the database, we regard
|
||||||
overwrite as two steps of unlink+add, so we still need to call the unlink
|
overwrite as two steps of unlink+add, so we still need to call the unlink
|
||||||
callback of the module. */
|
callback of the module. */
|
||||||
moduleNotifyKeyUnlink(key,val);
|
moduleNotifyKeyUnlink(key,old);
|
||||||
dictSetVal(db->dict, de, val);
|
dictSetVal(db->dict, de, val);
|
||||||
|
|
||||||
if (server.lazyfree_lazy_server_del) {
|
if (server.lazyfree_lazy_server_del) {
|
||||||
|
Loading…
Reference in New Issue
Block a user