1
0
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:
zhaozhao.zz 2018-06-14 01:30:07 +08:00
parent 032ea657d7
commit 2ffa533f85

@ -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);
}