Unverified Commit 38b8440b authored by Oran Agra's avatar Oran Agra Committed by GitHub
Browse files

fix moduleNotifyKeyUnlink to open the key with READ rather than WRITE (#12156)

just a plain overlook by #9406
parent aac8105c
......@@ -11696,7 +11696,7 @@ void moduleNotifyKeyUnlink(robj *key, robj *val, int dbid, int flags) {
} else if (flags & DB_FLAG_KEY_OVERWRITE) {
subevent = REDISMODULE_SUBEVENT_KEY_OVERWRITTEN;
}
KeyInfo info = {dbid, key, val, REDISMODULE_WRITE};
KeyInfo info = {dbid, key, val, REDISMODULE_READ};
moduleFireServerEvent(REDISMODULE_EVENT_KEY, subevent, &info);
 
if (val->type == OBJ_MODULE) {
......
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