This is the only reason we were making OpRequest a friend class, which
is just a bad idea.
Signed-off-by: Greg Farnum <greg@inktank.com>
void operator()(TrackedOp *op);
};
friend class RemoveOnDelete;
- friend class OpRequest;
friend class OpHistory;
uint64_t seq;
Mutex ops_in_flight_lock;
xlist<TrackedOp *> ops_in_flight;
OpHistory history;
-protected:
- CephContext *cct;
-
public:
+ CephContext *cct;
OpTracker(CephContext *cct_) : seq(0), ops_in_flight_lock("OpTracker mutex"), history(this), cct(cct_) {}
void dump_ops_in_flight(Formatter *f);
void dump_historic_ops(Formatter *f);