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

mon/MDSMonitor: fix a bug at preprocess_beacon #17415

Merged
merged 1 commit into from Sep 7, 2017

Conversation

wangshuguangbj
Copy link

when a mds node reboot, mon deal beacon message from this mds.
The connection between mon and MDS has been released.This will cause Session is empty.Then this mon will assert(session);

BTW in mon/OSDMonitor.cc,this bug is fixed.

Signed-off-by: wangshuguang wangshugaung@inspur.com

@@ -321,7 +321,8 @@ bool MDSMonitor::preprocess_beacon(MonOpRequestRef op)

// check privileges, ignore if fails
MonSession *session = m->get_session();
assert(session);
if(!session)
Copy link
Member

Choose a reason for hiding this comment

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

space between if and (

Copy link
Author

Choose a reason for hiding this comment

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

ok, i will modify this, thank you.

@liewegas liewegas changed the title mon/MdsMonitor: fix a bug at preprocess_beacon mon/MDSMonitor: fix a bug at preprocess_beacon Sep 1, 2017
when a mds node reboot, mon deal beacon message from this mds.
The connection between mon and MDS has been released.This will cause Session is empty.Then this mon will assert(session);

BTW in mon/OSDMonitor.cc,this bug is fixed.

Signed-off-by: wangshuguang <wangshugaung@inspur.com>
@wangshuguangbj
Copy link
Author

@liewegas I modified this yesterday,please review this for me.Thank you.

Copy link

@amitkumar50 amitkumar50 left a comment

Choose a reason for hiding this comment

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

looks good

@liewegas liewegas added needs-qa cephfs Ceph File System labels Sep 5, 2017
@liewegas liewegas merged commit bcebbc4 into ceph:master Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants