Commit 2ffa533f authored by zhaozhao.zz's avatar zhaozhao.zz
Browse files

fix exists command on slave

parent 032ea657
...@@ -467,8 +467,7 @@ void existsCommand(client *c) { ...@@ -467,8 +467,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);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment