summaryrefslogtreecommitdiff
path: root/src/t_list.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-06-11 12:38:51 +0200
committerantirez <antirez@gmail.com>2020-06-11 12:39:06 +0200
commit0091125cae64d409f5f29a93076de065f1c8ff89 (patch)
tree90f0a2d4850b07851bb51abdb157f05e171111cb /src/t_list.c
parent89ca2afd6b46496e3be5dbce2027b9381c4f431e (diff)
downloadredis-0091125cae64d409f5f29a93076de065f1c8ff89.tar.gz
LPOS: tests + crash fix.lpos
Diffstat (limited to 'src/t_list.c')
-rw-r--r--src/t_list.c2
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