Sentinel: small refactoring of sentinelCollectTerminatedScripts().

Related to #7113.
This commit is contained in:
antirez 2020-04-20 11:52:29 +02:00
parent f9d624c504
commit 2321939218

View File

@ -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--;
}
}