]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common/Throttle: remove unused member variable
authorKefu Chai <kchai@redhat.com>
Mon, 26 Apr 2021 16:02:14 +0000 (00:02 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 2 May 2021 00:16:12 +0000 (08:16 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/Throttle.cc
src/common/Throttle.h

index 5c45e9456c0be2e30ab63745fd1530c579faab38..7af9402795c5cdfdbcd177bca81c7e9f3f3f20e8 100644 (file)
@@ -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)
 {
index 57a9407ce9d57f11735a11a87f915487c8907eb0..eeaf8cb98a37368fc2976c5d8fd01aa3aa0ee812 100644 (file)
@@ -150,7 +150,6 @@ public:
  * delay = e + (r - h)((m - e)/(1 - h))
  */
 class BackoffThrottle {
-  CephContext *cct;
   const std::string name;
   PerfCountersRef logger;