Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
23219392
Commit
23219392
authored
Apr 20, 2020
by
antirez
Browse files
Sentinel: small refactoring of sentinelCollectTerminatedScripts().
Related to #7113.
parent
f9d624c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
23219392
...
@@ -860,7 +860,6 @@ void sentinelCollectTerminatedScripts(void) {
...
@@ -860,7 +860,6 @@ 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. */
...
@@ -870,8 +869,8 @@ void sentinelCollectTerminatedScripts(void) {
...
@@ -870,8 +869,8 @@ void sentinelCollectTerminatedScripts(void) {
}
}
listDelNode(sentinel.scripts_queue,ln);
listDelNode(sentinel.scripts_queue,ln);
sentinelReleaseScriptJob(sj);
sentinelReleaseScriptJob(sj);
sentinel.running_scripts--;
}
}
sentinel.running_scripts--;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment