Unverified Commit 0232778f authored by Huang Zw's avatar Huang Zw Committed by GitHub
Browse files

In dbOverwrite moduleNotifyKeyUnlink should use old val (#8381)

The module notification was using the wrong value. 
parent f28fccd2
...@@ -226,7 +226,7 @@ void dbOverwrite(redisDb *db, robj *key, robj *val) { ...@@ -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) {
......
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