]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
TrackedOp: remove unused private variable
authorNoah Watkins <noahwatkins@gmail.com>
Sat, 7 Dec 2013 17:54:53 +0000 (09:54 -0800)
committerNoah Watkins <noahwatkins@gmail.com>
Sun, 8 Dec 2013 02:07:03 +0000 (18:07 -0800)
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/common/TrackedOp.h

index 44e03905759a4da1390c627cca746b457ba3159e..ef8a990bd3e910e4724099ee58502069ad8805c3 100644 (file)
@@ -31,12 +31,11 @@ class OpHistory {
   set<pair<double, TrackedOpRef> > duration;
   void cleanup(utime_t now);
   bool shutdown;
-  OpTracker *tracker;
   uint32_t history_size;
   uint32_t history_duration;
 
 public:
-  OpHistory(OpTracker *tracker_) : shutdown(false), tracker(tracker_),
+  OpHistory() : shutdown(false),
   history_size(0), history_duration(0) {}
   ~OpHistory() {
     assert(arrived.empty());
@@ -70,7 +69,7 @@ class OpTracker {
 public:
   CephContext *cct;
   OpTracker(CephContext *cct_) : seq(0), ops_in_flight_lock("OpTracker mutex"),
-      history(this), complaint_time(0), log_threshold(0), cct(cct_) {}
+      complaint_time(0), log_threshold(0), cct(cct_) {}
   void set_complaint_and_threshold(float time, int threshold) {
     complaint_time = time;
     log_threshold = threshold;