From 23219392184ef605cab26323a94ae031273bc6e7 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 20 Apr 2020 11:52:29 +0200 Subject: Sentinel: small refactoring of sentinelCollectTerminatedScripts(). Related to #7113. --- src/sentinel.c | 3 +-- 1 file changed, 1 insertion(+), 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--; } } -- cgit v1.2.1