mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
fix exists command on slave
This commit is contained in:
parent
032ea657d7
commit
2ffa533f85
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…
x
Reference in New Issue
Block a user