diff --git a/src/networking.c b/src/networking.c index 98a5235930..eb0d5f0534 100644 --- a/src/networking.c +++ b/src/networking.c @@ -4520,7 +4520,7 @@ void flushReplicasOutputBuffers(void) { } } -char *getPausedPurposeString(pause_purpose purpose) { +char *getPausedPurpose(pause_purpose purpose) { switch (purpose) { case PAUSE_BY_CLIENT_COMMAND: return "client_command"; diff --git a/src/server.c b/src/server.c index a95c0e4a55..8e91ec7947 100644 --- a/src/server.c +++ b/src/server.c @@ -5676,11 +5676,11 @@ sds genValkeyInfoString(dict *section_dict, int all_sections, int everything) { if (server.paused_actions & PAUSE_ACTION_CLIENT_ALL) { paused_actions = "all"; paused_timeout = getPausedActionTimeout(PAUSE_ACTION_CLIENT_ALL, &purpose); - paused_purpose = getPausedPurposeString(purpose); + paused_purpose = getPausedPurpose(purpose); } else if (server.paused_actions & PAUSE_ACTION_CLIENT_WRITE) { paused_actions = "write"; paused_timeout = getPausedActionTimeout(PAUSE_ACTION_CLIENT_WRITE, &purpose); - paused_purpose = getPausedPurposeString(purpose); + paused_purpose = getPausedPurpose(purpose); } if (sections++) info = sdscat(info, "\r\n"); diff --git a/src/server.h b/src/server.h index 97f2fbaca3..ff284a13f9 100644 --- a/src/server.h +++ b/src/server.h @@ -2714,7 +2714,7 @@ void pauseActions(pause_purpose purpose, mstime_t end, uint32_t actions); void unpauseActions(pause_purpose purpose); uint32_t isPausedActions(uint32_t action_bitmask); uint32_t isPausedActionsWithUpdate(uint32_t action_bitmask); -char *getPausedPurposeString(pause_purpose purpose); +char *getPausedPurpose(pause_purpose purpose); mstime_t getPausedActionTimeout(uint32_t action, pause_purpose *purpose); void updatePausedActions(void); void unblockPostponedClients(void);