diff options
author | antirez <antirez@gmail.com> | 2020-06-11 12:38:51 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-06-11 12:39:06 +0200 |
commit | 0091125cae64d409f5f29a93076de065f1c8ff89 (patch) | |
tree | 90f0a2d4850b07851bb51abdb157f05e171111cb /src/t_list.c | |
parent | 89ca2afd6b46496e3be5dbce2027b9381c4f431e (diff) | |
download | redis-0091125cae64d409f5f29a93076de065f1c8ff89.tar.gz |
LPOS: tests + crash fix.lpos
Diffstat (limited to 'src/t_list.c')
-rw-r--r-- | src/t_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_list.c b/src/t_list.c index 653337d78..e580139ab 100644 --- a/src/t_list.c +++ b/src/t_list.c @@ -554,7 +554,7 @@ void lposCommand(client *c) { /* We return NULL or an empty array if there is no such key (or * if we find no matches, depending on the presence of the COUNT option. */ - if ((o = lookupKeyWriteOrReply(c,c->argv[1],NULL)) == NULL) { + if ((o = lookupKeyRead(c->db,c->argv[1])) == NULL) { if (count != -1) addReply(c,shared.emptyarray); else |