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

Crush:add some safe judgment. #7344

Merged
merged 1 commit into from Jan 31, 2016
Merged

Crush:add some safe judgment. #7344

merged 1 commit into from Jan 31, 2016

Conversation

songbaisen
Copy link

Crush: add some safe judgment.

Fixes: #14496
Signed-off-by: song baisen song.baisen@zte.com.cn

}
default:
return NULL;
}
return 0;
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't really change anything; just switch return 0 to return NULL.

@liewegas
Copy link
Member

The first assert is good, the others aren't helpful. Can you always put a space after the colon in your commit messages?

Fixes: ceph#14496
Signed-off-by: song baisen song.baisen@zte.com.cn
@songbaisen
Copy link
Author

@liewegas Thanks for your review.I have changed it.

liewegas added a commit that referenced this pull request Jan 31, 2016
crush: add safety assert

Reviewed-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit ace46da into ceph:master Jan 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants