diff options
author | Igor Fedotov <igor.fedotov@croit.io> | 2024-02-15 13:00:42 +0100 |
---|---|---|
committer | Igor Fedotov <igor.fedotov@croit.io> | 2024-02-15 13:13:51 +0100 |
commit | 4e13f936171cfb3d6cbb2264effbc1de369fccdc (patch) | |
tree | 370257aaad66b21d3e6e402ef132e360d023f60a /src/os | |
parent | Merge pull request #54295 from rhcs-dashboard/edit-bucket-acl-tags (diff) | |
download | ceph-4e13f936171cfb3d6cbb2264effbc1de369fccdc.tar.xz ceph-4e13f936171cfb3d6cbb2264effbc1de369fccdc.zip |
os/bluestore: eliminate build warnings
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/bluestore/BlueStore.cc | 2 | ||||
-rw-r--r-- | src/os/bluestore/BlueStore.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 29aff834fa4..ed4f4a93a85 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -2865,7 +2865,7 @@ uint32_t BlueStore::Blob::merge_blob(CephContext* cct, Blob* blob_to_dissolve) auto buf = src->bc.buffer_map.extract(src->bc.buffer_map.cbegin()); buf.mapped().space = &dst->bc; if (dst->bc.buffer_map.count(buf.key()) == 0) { - dst->bc.buffer_map.insert({buf.key(), std::move(buf.mapped())}); + dst->bc.buffer_map.emplace(buf.key(), std::move(buf.mapped())); } } // move BufferSpace writing diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index f9dba48220c..80537058c8d 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -1049,7 +1049,7 @@ public: void bound_encode_spanning_blobs(size_t& p); void encode_spanning_blobs(ceph::buffer::list::contiguous_appender& p); - BlobRef get_spanning_blob(int id) { + BlobRef& get_spanning_blob(int id) { auto p = spanning_blob_map.find(id); ceph_assert(p != spanning_blob_map.end()); return p->second; |