diff --git a/src/t_stream.c b/src/t_stream.c index 197b7d4f7..32bfa1f7d 100644 --- a/src/t_stream.c +++ b/src/t_stream.c @@ -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;