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

os/bluestore: kill dead gc-related counters #12065

Merged
merged 4 commits into from Nov 21, 2016

Conversation

xiexingguo
Copy link
Member

As the gc logic is deprecated by #12042

Signed-off-by: xie xingguo xie.xingguo@zte.com.cn

As the gc logic is deprecated by ceph#12042

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
and use the new method to simplify code.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@ghost
Copy link

ghost commented Nov 18, 2016

jenkins test this please (asok)

…ompression

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@@ -1280,9 +1280,8 @@ ostream& operator<<(ostream& out, const BlueStore::SharedBlob& sb)
return out << ")";
}

BlueStore::SharedBlob::SharedBlob(uint64_t i, const string& k, Cache *c)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer a more robust change that introduce a ctor without sbid/key assignment and sbid setter that assigns both sbid and key(the latter to be calculated internally). Additional ctor that assigns sbid/key via the introduced setter is OK too. General idea here is to have an SharedBlob interface that ensures consistent internal state, i.e. sbid and key are assigned all together.

Copy link
Member

Choose a reason for hiding this comment

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

That would be a bit nicer, yeah.. It's just the open_shared_blob() caller that should use a new ctor, and the new ctor should do the get_shared_blob_key() call

Copy link
Member Author

Choose a reason for hiding this comment

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

updated.

@xiexingguo xiexingguo force-pushed the xxg-wip-kill-gc-counters branch 2 times, most recently from 9d3854d to 44eaa02 Compare November 19, 2016 05:48
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@ifed01 ifed01 merged commit 71b1a41 into ceph:master Nov 21, 2016
@xiexingguo xiexingguo deleted the xxg-wip-kill-gc-counters branch November 22, 2016 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants