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
9df63fca
Commit
9df63fca
authored
Aug 27, 2013
by
antirez
Browse files
Only run the fast active expire cycle if master & enabled.
parent
f5903846
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
9df63fca
...
@@ -1144,8 +1144,10 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
...
@@ -1144,8 +1144,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)) {
...
...
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