Merge pull request #7113 from OMG-By/unstable

fix(sentinel): sentinel.running_scripts not reset
This commit is contained in:
Salvatore Sanfilippo 2020-04-20 11:51:51 +02:00 committed by GitHub
commit f9d624c504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -860,6 +860,7 @@ void sentinelCollectTerminatedScripts(void) {
sj->pid = 0; sj->pid = 0;
sj->start_time = mstime() + sj->start_time = mstime() +
sentinelScriptRetryDelay(sj->retry_num); sentinelScriptRetryDelay(sj->retry_num);
sentinel.running_scripts--;
} else { } else {
/* Otherwise let's remove the script, but log the event if the /* Otherwise let's remove the script, but log the event if the
* execution did not terminated in the best of the ways. */ * execution did not terminated in the best of the ways. */