Merge pull request #5021 from soloestoy/fix-exists

fix exists command on slave
This commit is contained in:
Salvatore Sanfilippo
2018-06-14 13:58:30 +02:00
committed by GitHub

View File

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