Skip to content

Commit

Permalink
format line 1946
Browse files Browse the repository at this point in the history
  • Loading branch information
hwware committed Jun 13, 2024
1 parent 4e0c4da commit 307cca3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sentinel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1946,7 +1946,9 @@ const char *sentinelHandleConfiguration(char **argv, int argc) {
if ((sentinel.announce_hostnames = yesnotoi(argv[1])) == -1) {
return "Please specify yes or no for the announce-hostnames option.";
}
} else if ((!strcasecmp(argv[0], "primary-reboot-down-after-period") || !strcasecmp(argv[0], "master-reboot-down-after-period")) && argc == 3) {
} else if ((!strcasecmp(argv[0], "primary-reboot-down-after-period") ||
!strcasecmp(argv[0], "master-reboot-down-after-period")) &&
argc == 3) {
/* primary-reboot-down-after-period <name> <milliseconds> */
ri = sentinelGetPrimaryByName(argv[1]);
if (!ri) return "No such master with specified name.";
Expand Down

0 comments on commit 307cca3

Please sign in to comment.