New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
librbd: add override in header files #13536
librbd: add override in header files #13536
Conversation
src/librbd/AioImageRequest.h
Outdated
virtual void send_object_cache_requests(const ObjectExtents &object_extents, | ||
uint64_t journal_tid); | ||
void send_object_cache_requests(const ObjectExtents &object_extents, | ||
uint64_t journal_tid) override; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/librbd/AioImageRequest.h
Outdated
|
||
virtual void send_object_requests(const ObjectExtents &object_extents, | ||
void send_object_requests(const ObjectExtents &object_extents, | ||
const ::SnapContext &snapc, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/librbd/AioImageRequest.h
Outdated
bool synchronous); | ||
virtual void update_stats(size_t length); | ||
uint64_t append_journal_event(const AioObjectRequests &requests, | ||
bool synchronous) override; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/librbd/AioImageRequest.h
Outdated
uint64_t journal_tid); | ||
uint32_t get_object_cache_request_count(bool journaling) const override; | ||
void send_object_cache_requests(const ObjectExtents &object_extents, | ||
uint64_t journal_tid) override; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/librbd/AioImageRequest.h
Outdated
bool synchronous); | ||
virtual void update_stats(size_t length); | ||
uint64_t append_journal_event(const AioObjectRequests &requests, | ||
bool synchronous) override; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/librbd/Watcher.h
Outdated
@@ -114,11 +114,11 @@ class Watcher { | |||
|
|||
WatchCtx(Watcher &parent) : watcher(parent) {} | |||
|
|||
virtual void handle_notify(uint64_t notify_id, | |||
void handle_notify(uint64_t notify_id, | |||
uint64_t handle, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Context *on_finish); | ||
virtual void aio_flush(Context *on_finish); | ||
void aio_read(Extents&& image_extents, ceph::bufferlist *bl, | ||
int fadvise_flags, Context *on_finish) override; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
void aio_read(Extents&& image_extents, ceph::bufferlist *bl, | ||
int fadvise_flags, Context *on_finish) override; | ||
void aio_write(Extents&& image_extents, ceph::bufferlist&& bl, | ||
int fadvise_flags, Context *on_finish) override; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
void aio_write(Extents&& image_extents, ceph::bufferlist&& bl, | ||
int fadvise_flags, Context *on_finish) override; | ||
void aio_discard(uint64_t offset, uint64_t length, | ||
Context *on_finish) override; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
virtual void handle_notify(uint64_t notify_id, uint64_t handle, | ||
uint64_t notifier_id, bufferlist &bl); | ||
void handle_notify(uint64_t notify_id, uint64_t handle, | ||
uint64_t notifier_id, bufferlist &bl) override; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@dillaman what's wrong with indentation |
@liuchang0812 The params on the next line should align with the params on the previous line -- they don't now after the "virtual " keyword was removed. |
@dillaman thanks I don't know how to fix this by clang-tidy automatically , I will correct it by hands tomorrow |
4ef0b22
to
15a7402
Compare
src/tools/rbd_mirror/LeaderWatcher.h
Outdated
virtual void pre_release_lock_handler(bool shutting_down, | ||
Context *on_finish) { | ||
void pre_release_lock_handler(bool shutting_down, | ||
Context *on_finish) override { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@dillaman It seems that I have fixed all indentation problems. Could you take a look again. Very thanks. |
There are some CE because I rebased branch. I'm fixing it. |
Fixes: http://tracker.ceph.com/issues/19012 Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
15a7402
to
f72b881
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm -- thanks!
Fixes: http://tracker.ceph.com/issues/19012
Signed-off-by: liuchang0812 liuchang0812@gmail.com