Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7371d5e2
Commit
7371d5e2
authored
Feb 15, 2013
by
antirez
Browse files
Remove wrong decrRefCount() from getNodeByQuery().
This fixes issue #607.
parent
20f52b5b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
7371d5e2
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment