mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
Only run the fast active expire cycle if master & enabled.
This commit is contained in:
parent
303dde3757
commit
003cc8a4f5
@ -1180,8 +1180,10 @@ 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
|
||||||
activeExpireCycle(ACTIVE_EXPIRE_CYCLE_FAST);
|
* ASAP if a fast cycle is not needed). */
|
||||||
|
if (server.active_expire_enabled && server.masterhost == NULL)
|
||||||
|
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. */
|
||||||
while (listLength(server.unblocked_clients)) {
|
while (listLength(server.unblocked_clients)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user