Commit 246980d0 authored by youjiali1995's avatar youjiali1995 Committed by antirez
Browse files

sentinel: fix randomized sentinelTimer.

parent fa7de8c4
...@@ -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) {
......
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