Fix extra reply in debug sleep-after-fork-seconds error path (#810)
The getDoubleFromObjectOrReply already add the error reply when C_ERR, remove this extra error reply. Signed-off-by: Binbin <binloveplay1314@qq.com>
This commit is contained in:
parent
5000c050b5
commit
9a7bf910cb
@ -998,7 +998,6 @@ void debugCommand(client *c) {
|
||||
} else if (!strcasecmp(c->argv[1]->ptr, "sleep-after-fork-seconds") && c->argc == 3) {
|
||||
double sleep_after_fork_seconds;
|
||||
if (getDoubleFromObjectOrReply(c, c->argv[2], &sleep_after_fork_seconds, NULL) != C_OK) {
|
||||
addReply(c, shared.err);
|
||||
return;
|
||||
}
|
||||
server.debug_sleep_after_fork_us = (int)(sleep_after_fork_seconds * 1e6);
|
||||
|
Loading…
x
Reference in New Issue
Block a user