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
commit 8bc3ffcb29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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