Skip to content

Commit

Permalink
update the function name to remove the string suffix
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin committed Jan 20, 2025
1 parent 376fd33 commit c442b79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/networking.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c442b79

Please sign in to comment.