]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/TrackedOp: make TrackedOp an intrusive::list::list_base_hook<>
authorSage Weil <sage@redhat.com>
Thu, 15 Dec 2016 14:55:13 +0000 (09:55 -0500)
committerSage Weil <sage@redhat.com>
Fri, 27 Jan 2017 15:30:43 +0000 (10:30 -0500)
This lets us put these in efficient lists.  Note that callers must take
care to bump the ref count manually!

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/TrackedOp.h

index b093b593de48a8c5aecb7101d6519fe397480d04..6f39791d994bade819c9eb45f9ac3a63f9d71e11 100644 (file)
@@ -115,7 +115,7 @@ public:
 };
 
 
-class TrackedOp {
+class TrackedOp : public boost::intrusive::list_base_hook<> {
 private:
   friend class OpHistory;
   friend class OpTracker;