]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: revert "mds/Mutation: remove redundant _dump method" 11985/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 14 Nov 2016 23:30:35 +0000 (18:30 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 15 Nov 2016 04:19:25 +0000 (23:19 -0500)
This reverts commit 93d0fc9d937186861b41b054235955475c65b5c1.

This commit had the unintentional side-effect of preventing TrackedOp
dumps from including MDS specific events.

Fixes: http://tracker.ceph.com/issues/17906
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/Mutation.cc
src/mds/Mutation.h

index e8873e82631d18718be197038839a371b1e86e11..2b39e5929497fbfe4b8db9ea3bc786a76c514dfb 100644 (file)
@@ -314,6 +314,11 @@ void MDRequestImpl::print(ostream &out) const
 }
 
 void MDRequestImpl::dump(Formatter *f) const
+{
+  _dump(ceph_clock_now(g_ceph_context), f);
+}
+
+void MDRequestImpl::_dump(utime_t now, Formatter *f) const
 {
   f->dump_string("flag_point", state_string());
   f->dump_stream("reqid") << reqid;
index 3906d4b65f9c44d8377e6b29088c335c521ad813..ed7d5af2028ad104274b7f0b606c9d0953d43c91 100644 (file)
@@ -333,6 +333,7 @@ struct MDRequestImpl : public MutationImpl, public TrackedOp {
   // TrackedOp stuff
   typedef ceph::shared_ptr<MDRequestImpl> Ref;
 protected:
+  void _dump(utime_t now, Formatter *f) const;
   void _dump_op_descriptor_unlocked(ostream& stream) const;
 };