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: kill preferred field in pg_t #20567

Merged
merged 2 commits into from Feb 26, 2018

Conversation

liewegas
Copy link
Member

This was been unused (always -1) for many years.

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

@gregsfortytwo gregsfortytwo left a comment

Choose a reason for hiding this comment

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

I can't believe this is still sitting around!

As per usual, a comment suggestion. Otherwise LGTM.

@@ -438,15 +434,15 @@ struct pg_t {
encode(v, bl);
encode(m_pool, bl);
encode(m_seed, bl);
encode(m_preferred, bl);
encode((int32_t)-1, bl);
Copy link
Member

Choose a reason for hiding this comment

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

Please comment it here. How about

// previously held a pg preferred value

Or we could just have a named "int32_t reserved = -1;" sitting there.

We killed this many many years ago; remove it!

Keep the hash<pg_t> value the same just in case this leaked into some
on-disk or on-wire structure.

Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit 1378ab7 into ceph:master Feb 26, 2018
@liewegas liewegas deleted the wip-kill-pg-preferred branch February 26, 2018 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants