From 2c8e538e8352d17f8f64c77b80e18a764540c8d0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 17 Jul 2019 16:46:52 -0500 Subject: [PATCH] mon/MonClient: allow retries to be adjusted Signed-off-by: Sage Weil Signed-off-by: Greg Farnum --- src/common/legacy_config_opts.h | 1 + src/common/options.cc | 4 ++++ src/mon/MonClient.cc | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 88a6b94882b..b1928d74a15 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -334,6 +334,7 @@ OPTION(mon_client_ping_timeout, OPT_DOUBLE) // fail if we don't hear back OPTION(mon_client_hunt_interval_backoff, OPT_DOUBLE) // each time we reconnect to a monitor, double our timeout OPTION(mon_client_hunt_interval_max_multiple, OPT_DOUBLE) // up to a max of 10*default (30 seconds) OPTION(mon_client_max_log_entries_per_message, OPT_INT) +OPTION(mon_client_directed_command_retry, OPT_INT) OPTION(client_cache_size, OPT_INT) OPTION(client_cache_mid, OPT_FLOAT) OPTION(client_use_random_mds, OPT_BOOL) diff --git a/src/common/options.cc b/src/common/options.cc index 556a612eb35..7d64596d9b5 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -2220,6 +2220,10 @@ std::vector