From bde53e38014b1b56d5d1168008964c52bbdcfff8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 25 Jul 2017 18:41:53 -0400 Subject: [PATCH] mon/MonClient: factor un-backoff into helper; add missing config option - move this into a helper - use the backoff factor for the division instead of hard-coding 2.0 - add a min config option instead of hard-coding 1.0 Signed-off-by: Sage Weil --- src/common/options.cc | 4 ++++ src/mon/MonClient.cc | 18 ++++++++++++++---- src/mon/MonClient.h | 1 + 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index c98bd30a93823..d5bb61c229499 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1427,6 +1427,10 @@ std::vector