mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Sentinel: small refactoring of sentinelCollectTerminatedScripts().
Related to #7113.
This commit is contained in:
parent
f9d624c504
commit
2321939218
@ -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--;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user