diff options
author | antirez <antirez@gmail.com> | 2020-04-20 11:52:29 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-04-20 11:52:34 +0200 |
commit | 23219392184ef605cab26323a94ae031273bc6e7 (patch) | |
tree | b7055950dbb1574286270547696a086b02f9f148 | |
parent | f9d624c50449dd1c6f6df043948875def98bb920 (diff) | |
download | redis-23219392184ef605cab26323a94ae031273bc6e7.tar.gz |
Sentinel: small refactoring of sentinelCollectTerminatedScripts().
Related to #7113.
-rw-r--r-- | src/sentinel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sentinel.c b/src/sentinel.c index 204a8b317..fb504ae4d 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -860,7 +860,6 @@ void sentinelCollectTerminatedScripts(void) { sj->pid = 0; sj->start_time = mstime() + sentinelScriptRetryDelay(sj->retry_num); - sentinel.running_scripts--; } else { /* Otherwise let's remove the script, but log the event if the * execution did not terminated in the best of the ways. */ @@ -870,8 +869,8 @@ void sentinelCollectTerminatedScripts(void) { } listDelNode(sentinel.scripts_queue,ln); sentinelReleaseScriptJob(sj); - sentinel.running_scripts--; } + sentinel.running_scripts--; } } |