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
489d8897
Commit
489d8897
authored
Nov 21, 2013
by
antirez
Browse files
Sentinel: removed mem leak and useless code.
parent
1ca56ea7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
489d8897
...
@@ -2669,14 +2669,6 @@ void sentinelAskMasterStateToOtherSentinels(sentinelRedisInstance *master, int f
...
@@ -2669,14 +2669,6 @@ void sentinelAskMasterStateToOtherSentinels(sentinelRedisInstance *master, int f
dictIterator *di;
dictIterator *di;
dictEntry *de;
dictEntry *de;
/* Vote for myself if I see the master is already in ODOWN state. */
if (master->flags & SRI_O_DOWN) {
uint64_t leader_epoch;
sentinelVoteLeader(master,sentinel.current_epoch,server.runid,
&leader_epoch);
}
di = dictGetIterator(master->sentinels);
di = dictGetIterator(master->sentinels);
while((de = dictNext(di)) != NULL) {
while((de = dictNext(di)) != NULL) {
sentinelRedisInstance *ri = dictGetVal(de);
sentinelRedisInstance *ri = dictGetVal(de);
...
...
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