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: more constness #17748

Merged
merged 1 commit into from Sep 16, 2017
Merged

mon: more constness #17748

merged 1 commit into from Sep 16, 2017

Conversation

tchaikov
Copy link
Contributor

Signed-off-by: Kefu Chai kchai@redhat.com

Signed-off-by: Kefu Chai <kchai@redhat.com>
@@ -79,7 +79,7 @@ class ConfigKeyService : public QuorumService
string get_name() const override {
return "config_key";
}
virtual void get_store_prefixes(set<string>& s);
void get_store_prefixes(set<string>& s) const;
Copy link
Contributor Author

@tchaikov tchaikov Sep 15, 2017

Choose a reason for hiding this comment

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

removing virtual, because there is no derived class of ConfigKeyService yet. i was even tempted to add final...

Copy link
Member

@jecluis jecluis left a comment

Choose a reason for hiding this comment

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

This makes sense to me. Even though I'm sure there are a bunch more places where we could make functions const, this is definitely appreciated ;)

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.

Looks Good to me.

@tchaikov
Copy link
Contributor Author

@tchaikov tchaikov merged commit ffcd581 into ceph:master Sep 16, 2017
@tchaikov tchaikov deleted the wip-mon-constness branch September 16, 2017 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants