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

rgw: cleanup MIN macro with std::min #17546

Merged
merged 1 commit into from
Oct 20, 2017
Merged

Conversation

mikulely
Copy link
Contributor

@mikulely mikulely commented Sep 7, 2017

No description provided.

@mikulely
Copy link
Contributor Author

mikulely commented Sep 7, 2017

Jenkins,retest this please.

@mikulely
Copy link
Contributor Author

Jenkins,retest this please.

@mikulely
Copy link
Contributor Author

@cbodley ping

@@ -2074,12 +2074,12 @@ void RGWObjManifest::obj_iterator::operator++()
if (ofs < head_size) {
rule_iter = manifest->rules.begin();
RGWObjManifestRule *rule = &rule_iter->second;
ofs = MIN(head_size, obj_size);
ofs = min(head_size, obj_size);
Copy link
Contributor

Choose a reason for hiding this comment

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

can you please qualify these ones with std:: also?

@mikulely
Copy link
Contributor Author

Jenkins,retest this please.

+ cleanup MIN macro
+ add std namespace

Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>

Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>
@mikulely
Copy link
Contributor Author

@cbodley done.

@yuriw
Copy link
Contributor

yuriw commented Oct 18, 2017

@yuriw yuriw merged commit 7ccd491 into ceph:master Oct 20, 2017
@mikulely mikulely deleted the rgw-cleanup-min branch October 21, 2017 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants