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

osd: fix reqid assignment for reply messages in OpRequest #17060

Merged
merged 1 commit into from Aug 20, 2017

Conversation

cyx1231st
Copy link
Member

Signed-off-by: Yingxin Cheng yingxin.cheng@intel.com

@cyx1231st cyx1231st force-pushed the fix_reqid_assignment_in_oprequest branch from b431da8 to 30199ed Compare August 17, 2017 07:48
@joscollin joscollin added the core label Aug 17, 2017
@@ -38,6 +39,8 @@ OpRequest::OpRequest(Message *req, OpTracker *tracker) :
reqid = static_cast<MOSDSubOp*>(req)->reqid;
} else if (req->get_type() == MSG_OSD_REPOP) {
reqid = static_cast<MOSDRepOp*>(req)->reqid;
} else if (req->get_type() == MSG_OSD_REPOPREPLY) {
reqid = static_cast<MOSDRepOpReply*>(req)->reqid;
Copy link
Member

Choose a reason for hiding this comment

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

What about MOSDSubOpReply ?

Copy link
Member

Choose a reason for hiding this comment

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

It would have been a better design if reqid was private as it is in MOSDOp. Don't know why it is not.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, thanks.

@cyx1231st cyx1231st force-pushed the fix_reqid_assignment_in_oprequest branch 2 times, most recently from 919a06d to 4186d9e Compare August 17, 2017 08:48
@cyx1231st cyx1231st changed the title osd/OpRequest: fix reqid assignment for MOSDRepOpReply osd/OpRequest: fix reqid assignment for reply messages Aug 17, 2017
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
@cyx1231st
Copy link
Member Author

retest this please

@joscollin joscollin changed the title osd/OpRequest: fix reqid assignment for reply messages osd: fix reqid assignment for reply messages in OpRequest Aug 18, 2017
Copy link
Member

@joscollin joscollin left a comment

Choose a reason for hiding this comment

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

LGTM

@tchaikov tchaikov merged commit e407049 into ceph:master Aug 20, 2017
@cyx1231st cyx1231st deleted the fix_reqid_assignment_in_oprequest branch November 27, 2017 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants