From 9a7bf910cbd7795d8a86bee9bec6378c366b9e6b Mon Sep 17 00:00:00 2001 From: Binbin Date: Tue, 23 Jul 2024 12:48:23 +0800 Subject: [PATCH] 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 --- src/debug.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index 09dbfb67e..2ea0c1a3e 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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);