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

mds/MDSMap.h: add const to member functions #11511

Merged
merged 1 commit into from Oct 19, 2016

Conversation

stiopaa1
Copy link
Contributor

Signed-off-by: Michal Jarzabek stiopa@gmail.com

@@ -610,9 +612,9 @@ class MDSMap {
}
}

int get_inc_gid(mds_gid_t gid) {
int get_inc_gid(mds_gid_t gid) const {
if (mds_info.count(gid))
Copy link
Contributor

Choose a reason for hiding this comment

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

could you take this chance to fix the anti-pattern of count + []?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tchaikov
done

@tchaikov tchaikov added cephfs Ceph File System cleanup labels Oct 16, 2016
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
@stiopaa1 stiopaa1 force-pushed the mds_mdsmap_addConstToMemFunctions branch from 5937c88 to 51d6359 Compare October 16, 2016 15:11
@jcsp jcsp merged commit ed9d35d into ceph:master Oct 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cephfs Ceph File System cleanup
Projects
None yet
3 participants