mirror of
https://github.com/fluencelabs/redis
synced 2025-05-13 11:11:20 +00:00
fix exists command on slave
This commit is contained in:
parent
ab145a9f15
commit
5f1fcc599a
3
src/db.c
3
src/db.c
@ -481,8 +481,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…
x
Reference in New Issue
Block a user