fix exists command on slave

This commit is contained in:
zhaozhao.zz 2018-06-14 01:30:07 +08:00 committed by antirez
parent ab145a9f15
commit 5f1fcc599a

View File

@ -481,8 +481,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);
} }