Commit 7371d5e2 authored by antirez's avatar antirez
Browse files

Remove wrong decrRefCount() from getNodeByQuery().

This fixes issue #607.
parent 20f52b5b
...@@ -1963,7 +1963,6 @@ clusterNode *getNodeByQuery(redisClient *c, struct redisCommand *cmd, robj **arg ...@@ -1963,7 +1963,6 @@ clusterNode *getNodeByQuery(redisClient *c, struct redisCommand *cmd, robj **arg
/* If it is not the first key, make sure it is exactly /* If it is not the first key, make sure it is exactly
* the same key as the first we saw. */ * the same key as the first we saw. */
if (!equalStringObjects(firstkey,margv[keyindex[j]])) { if (!equalStringObjects(firstkey,margv[keyindex[j]])) {
decrRefCount(firstkey);
getKeysFreeResult(keyindex); getKeysFreeResult(keyindex);
return NULL; return NULL;
} }
......
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