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
a8322f44
Commit
a8322f44
authored
Sep 05, 2018
by
youjiali1995
Browse files
sentinel: fix randomized sentinelTimer.
parent
4e5e0d37
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
a8322f44
...
@@ -1320,9 +1320,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
...
@@ -1320,9 +1320,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
}
}
/* Run the Sentinel timer if we are in sentinel mode. */
/* Run the Sentinel timer if we are in sentinel mode. */
run_with_period
(
100
)
{
if
(
server
.
sentinel_mode
)
sentinelTimer
();
if
(
server
.
sentinel_mode
)
sentinelTimer
();
}
/* Cleanup expired MIGRATE cached sockets. */
/* Cleanup expired MIGRATE cached sockets. */
run_with_period
(
1000
)
{
run_with_period
(
1000
)
{
...
...
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