Skip to content
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

objecter: minor cleanups #19994

Merged
merged 2 commits into from Jan 26, 2018
Merged

objecter: minor cleanups #19994

merged 2 commits into from Jan 26, 2018

Conversation

runsisi
Copy link
Contributor

@runsisi runsisi commented Jan 18, 2018

remove Objecter::kick_requests which is unused and remove default arg for Objecter::_send_op

Signed-off-by: runsisi runsisi@zte.com.cn

@runsisi
Copy link
Contributor Author

runsisi commented Jan 18, 2018

retest this please

@@ -708,10 +708,9 @@ void Objecter::_send_linger_ping(LingerOp *info)
o->target = info->target;
o->should_resend = false;
_send_op_account(o);
MOSDOp *m = _prepare_osd_op(o);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the posterity, it might not look like a refactor as it claims because the message's tid is set using o->tid before "o->tid" is updated. but please note, Objecter::_send_op() always m->set_tid(op->tid) before sending the message.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@runsisi since you are at this file, could you help remove the line of https://github.com/ceph/ceph/blob/master/src/osdc/Objecter.cc#L3309 ? as _prepare_osd_op() should take care of this already.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, removed it since _prepare_osd_op() has set the updated m->tid.
thanks~

runsisi added 2 commits January 23, 2018 18:25
Signed-off-by: runsisi <runsisi@zte.com.cn>
it's more intuitive and consistent

Signed-off-by: runsisi <runsisi@zte.com.cn>
@tchaikov tchaikov merged commit 2d072dc into ceph:master Jan 26, 2018
@runsisi runsisi deleted the wip-objecter-cleanup branch January 26, 2018 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants