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

osd/osd_types: fix object_stat_sum_t decode #18551

Merged
merged 1 commit into from Oct 27, 2017

Conversation

liewegas
Copy link
Member

@liewegas liewegas commented Oct 26, 2017

Broken by 71bf047

This fixes the rados/upgrade test

Broken by 71bf047

Signed-off-by: Sage Weil <sage@redhat.com>
Copy link
Contributor

@badone badone left a comment

Choose a reason for hiding this comment

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

LGTM

@badone
Copy link
Contributor

badone commented Oct 27, 2017

@liewegas thinking about this I wonder if a static constexpr member function that returns the version number might be easier in terms of maintenance so this is never misinterpreted again?

[edit] Hmm... or even this approach?
private:
typedef std::integral_constant<uint, 17> MyVersion;

if (struct_v >= MyVersion::value) ...
[/edit]

@liewegas liewegas merged commit 748068f into ceph:master Oct 27, 2017
@liewegas liewegas deleted the wip-object-stat-decode branch October 27, 2017 13:23
@liewegas
Copy link
Member Author

I expect the comments will be sufficient, but can switch to a constant if you like. Errors are easily caught by test suite at least!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants