Commit e4c6458a authored by antirez's avatar antirez
Browse files

Only run the fast active expire cycle if master & enabled.

parent 9316362a
...@@ -1127,7 +1127,9 @@ void beforeSleep(struct aeEventLoop *eventLoop) { ...@@ -1127,7 +1127,9 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
listNode *ln; listNode *ln;
redisClient *c; redisClient *c;
/* Run a fast expire cycle. */ /* Run a fast expire cycle (the called function will return
* ASAP if a fast cycle is not needed). */
if (server.active_expire_enabled && server.masterhost == NULL)
activeExpireCycle(ACTIVE_EXPIRE_CYCLE_FAST); activeExpireCycle(ACTIVE_EXPIRE_CYCLE_FAST);
/* Try to process pending commands for clients that were just unblocked. */ /* Try to process pending commands for clients that were just unblocked. */
......
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