XINFO should use lookupKeyReadOrReply (#8436)
This bug would have let users observe logically expired keys on replicas and during CLIENT PAUSE WRITE.
This commit is contained in:
parent
b57d0eb418
commit
f2a5fe3678
@ -3471,7 +3471,7 @@ NULL
|
||||
key = c->argv[2];
|
||||
|
||||
/* Lookup the key now, this is common for all the subcommands but HELP. */
|
||||
robj *o = lookupKeyWriteOrReply(c,key,shared.nokeyerr);
|
||||
robj *o = lookupKeyReadOrReply(c,key,shared.nokeyerr);
|
||||
if (o == NULL || checkType(c,o,OBJ_STREAM)) return;
|
||||
s = o->ptr;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user