Skip to content

Commit

Permalink
fix moduleNotifyKeyUnlink to open the key with READ rather than WRITE (
Browse files Browse the repository at this point in the history
…#12156)

just a plain overlook by #9406
  • Loading branch information
oranagra committed May 11, 2023
1 parent aac8105 commit 38b8440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 38b8440

Please sign in to comment.