mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
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:
parent
944a895234
commit
42e084794c
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user