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
osd: clean up process_peering_events #12009
Conversation
jenkins test this please (eio/scrub failure) |
|
jenkins test this please (flake8 related error, now fixed) |
sure, "process_peering_events" will not be called if pgs is empty.
osdmap may be updated when 'process_peering_events' run, so i am not sure it is valid.
curmap is need outside the loop |
i concur with @363921219, and |
@@ -9030,7 +9030,8 @@ void OSD::process_peering_events( | |||
{ | |||
bool need_up_thru = false; | |||
epoch_t same_interval_since = 0; | |||
OSDMapRef curmap = service.get_osdmap(); | |||
assert(!pgs.empty()); |
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.
we can move this assert up into PeeringWQ::_process()`.
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.
and also put more details into the commit message: clean up
is too vague a word, IMHO.
@tchaikov thanks for your comments |
could you remove "Reviewed-by: Kefu Chai kchai@redhat.com" from your commit messages? it will be added to the merge commit by the one who merges your changes. |
and please squash these two commit into a single one. |
… loops. Signed-off-by: Jie Wang <jie.wang@kylin-cloud.com>
test this please (asok error now fixed in master) |
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.
jenkins test this please (eio) |
Signed-off-by: Jie Wang jie.wang@kylin-cloud.com