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
Conversation
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>
jenkins test this please (asok) |
aa5599a
to
9ddbfa0
Compare
…ompression Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9ddbfa0
to
fdaef67
Compare
@@ -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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated.
9d3854d
to
44eaa02
Compare
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
As the gc logic is deprecated by #12042
Signed-off-by: xie xingguo xie.xingguo@zte.com.cn