Skip to content

Commit

Permalink
Fix extra reply in debug sleep-after-fork-seconds error path (valkey-…
Browse files Browse the repository at this point in the history
…io#810)

The getDoubleFromObjectOrReply already add the error reply when
C_ERR, remove this extra error reply.

Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin authored Jul 23, 2024
1 parent 5000c05 commit 9a7bf91
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9a7bf91

Please sign in to comment.