mds: fix MDRequestImpl::print override

Fixes compiler warnings:

In file included from /home/cbodley/ceph/src/mds/Locker.cc:22:0:
/home/cbodley/ceph/src/mds/Mutation.h:161:16: warning: ‘virtual void
MutationImpl::print(std::ostream&) const’ was hidden
[-Woverloaded-virtual]
   virtual void print(ostream &out) const {
                ^
/home/cbodley/ceph/src/mds/Mutation.h:340:8: warning:   by ‘void
MDRequestImpl::print(std::ostream&)’ [-Woverloaded-virtual]
   void print(ostream &out);

Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2016-06-06 09:45:49 -04:00
parent 944a895234
commit 42e084794c
2 changed files with 3 additions and 3 deletions

View File

@ -303,7 +303,7 @@ void MDRequestImpl::set_filepath2(const filepath& fp)
more()->filepath2 = fp;
}
void MDRequestImpl::print(ostream &out)
void MDRequestImpl::print(ostream &out) const
{
out << "request(" << reqid;
//if (request) out << " " << *request;

View File

@ -337,8 +337,8 @@ struct MDRequestImpl : public MutationImpl, public TrackedOp {
void set_filepath(const filepath& fp);
void set_filepath2(const filepath& fp);
void print(ostream &out);
void dump(Formatter *f) const;
void print(ostream &out) const override;
void dump(Formatter *f) const override;
// TrackedOp stuff
typedef ceph::shared_ptr<MDRequestImpl> Ref;