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: remove intermediate key var to avoid string copy #12643

Merged
merged 1 commit into from Dec 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/os/bluestore/BlueStore.cc
Expand Up @@ -4608,9 +4608,8 @@ int BlueStore::fsck(bool deep)
it = db->get_iterator(PREFIX_OMAP);
if (it) {
for (it->lower_bound(string()); it->valid(); it->next()) {
string key = it->key();
uint64_t omap_head;
_key_decode_u64(key.c_str(), &omap_head);
_key_decode_u64(it->key().c_str(), &omap_head);
if (used_omap_head.count(omap_head) == 0) {
derr << __func__ << " found stray omap data on omap_head " << omap_head
<< dendl;
Expand Down