From d34aae8c86200f084384e7d06cd4fe05b831667d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 27 Apr 2021 00:02:14 +0800 Subject: [PATCH] common/Throttle: remove unused member variable Signed-off-by: Kefu Chai --- src/common/Throttle.cc | 2 +- src/common/Throttle.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/Throttle.cc b/src/common/Throttle.cc index 5c45e9456c0b..7af9402795c5 100644 --- a/src/common/Throttle.cc +++ b/src/common/Throttle.cc @@ -276,7 +276,7 @@ enum { BackoffThrottle::BackoffThrottle(CephContext *cct, const std::string& n, unsigned expected_concurrency, bool _use_perf) - : cct(cct), name(n), + : name(n), conds(expected_concurrency),///< [in] determines size of conds use_perf(_use_perf) { diff --git a/src/common/Throttle.h b/src/common/Throttle.h index 57a9407ce9d5..eeaf8cb98a37 100644 --- a/src/common/Throttle.h +++ b/src/common/Throttle.h @@ -150,7 +150,6 @@ public: * delay = e + (r - h)((m - e)/(1 - h)) */ class BackoffThrottle { - CephContext *cct; const std::string name; PerfCountersRef logger; -- 2.47.3