mirror of https://mirror.osredm.com/root/redis.git
Merge pull request #5021 from soloestoy/fix-exists
fix exists command on slave
This commit is contained in:
commit
8bc3ffcb29
3
src/db.c
3
src/db.c
|
@ -467,8 +467,7 @@ void existsCommand(client *c) {
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
for (j = 1; j < c->argc; j++) {
|
for (j = 1; j < c->argc; j++) {
|
||||||
expireIfNeeded(c->db,c->argv[j]);
|
if (lookupKeyRead(c->db,c->argv[j])) count++;
|
||||||
if (dbExists(c->db,c->argv[j])) count++;
|
|
||||||
}
|
}
|
||||||
addReplyLongLong(c,count);
|
addReplyLongLong(c,count);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue