From: Kefu Chai Date: Mon, 26 Apr 2021 16:02:14 +0000 (+0800) Subject: common/Throttle: remove unused member variable X-Git-Tag: v17.1.0~2082^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d34aae8c86200f084384e7d06cd4fe05b831667d;p=ceph-ci.git common/Throttle: remove unused member variable Signed-off-by: Kefu Chai --- diff --git a/src/common/Throttle.cc b/src/common/Throttle.cc index 5c45e9456c0..7af9402795c 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 57a9407ce9d..eeaf8cb98a3 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;