mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +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;
|
||||
|
||||
for (j = 1; j < c->argc; j++) {
|
||||
expireIfNeeded(c->db,c->argv[j]);
|
||||
if (dbExists(c->db,c->argv[j])) count++;
|
||||
if (lookupKeyRead(c->db,c->argv[j])) count++;
|
||||
}
|
||||
addReplyLongLong(c,count);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user