From a7726cdf517eca16dec37655881ddae2688aaaeb Mon Sep 17 00:00:00 2001 From: Binbin Date: Wed, 8 Dec 2021 14:59:02 +0800 Subject: [PATCH] Fix SENTINEL subcommands's arity (#9909) For `SENTINEL SET`, we can use in these ways: 1. SENTINEL SET mymaster quorum 3 2. SENTINEL SET mymaster quorum 5 parallel-syncs 1 For `SENTINEL SIMULATE-FAILURE`, although it is only used for testing: 1. SENTINEL SIMULATE-FAILURE CRASH-AFTER-ELECTION 2. SENTINEL SIMULATE-FAILURE CRASH-AFTER-ELECTION CRASH-AFTER-PROMOTION --- src/sentinel.c | 5 ++--- src/server.c | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sentinel.c b/src/sentinel.c index 297f0591f3..e309810395 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -3726,9 +3726,9 @@ void sentinelCommand(client *c) { " Reset masters for specific master name matching this pattern.", "SENTINELS ", " Show a list of Sentinel instances for this master and their state.", -"SET