mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
os/bluestore: remove intermediate key var to avoid string copy
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
parent
69d57b77bd
commit
1e156feb9a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user