From: xie xingguo Date: Mon, 13 Jun 2016 09:00:36 +0000 (+0800) Subject: mds/Mutation: remove redundant _dump method X-Git-Tag: v11.0.0~177^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F9649%2Fhead;p=ceph.git mds/Mutation: remove redundant _dump method 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 --- diff --git a/src/mds/Mutation.cc b/src/mds/Mutation.cc index 04a8d8ccb7e7..3235597e9503 100644 --- a/src/mds/Mutation.cc +++ b/src/mds/Mutation.cc @@ -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; diff --git a/src/mds/Mutation.h b/src/mds/Mutation.h index b8be8146858e..89cc92f38647 100644 --- a/src/mds/Mutation.h +++ b/src/mds/Mutation.h @@ -343,7 +343,6 @@ struct MDRequestImpl : public MutationImpl, public TrackedOp { // TrackedOp stuff typedef ceph::shared_ptr Ref; protected: - void _dump(utime_t now, Formatter *f) const; void _dump_op_descriptor_unlocked(ostream& stream) const; };