]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/Mutation: remove redundant _dump method 9649/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 13 Jun 2016 09:00:36 +0000 (17:00 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 13 Jun 2016 09:00:36 +0000 (17:00 +0800)
The original passed in parameter "now" is useless, so
_dump method is identical to dump and shall be considered
as redundant.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mds/Mutation.cc
src/mds/Mutation.h

index 04a8d8ccb7e77889fc30a96b370f9afc34e91e94..3235597e95033ed1519593ec99f616b970a1ff92 100644 (file)
@@ -314,11 +314,6 @@ 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 b8be8146858eda429f54092d5c11c8a5cdf2411e..89cc92f3864714056d4c14dc8b950e9abf440b08 100644 (file)
@@ -343,7 +343,6 @@ 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;
 };