Skip to content

Commit 4e13f93

Browse files
committed
os/bluestore: eliminate build warnings
Signed-off-by: Igor Fedotov <[email protected]>
1 parent 8259f75 commit 4e13f93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/os/bluestore/BlueStore.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2865,7 +2865,7 @@ uint32_t BlueStore::Blob::merge_blob(CephContext* cct, Blob* blob_to_dissolve)
28652865
auto buf = src->bc.buffer_map.extract(src->bc.buffer_map.cbegin());
28662866
buf.mapped().space = &dst->bc;
28672867
if (dst->bc.buffer_map.count(buf.key()) == 0) {
2868-
dst->bc.buffer_map.insert({buf.key(), std::move(buf.mapped())});
2868+
dst->bc.buffer_map.emplace(buf.key(), std::move(buf.mapped()));
28692869
}
28702870
}
28712871
// move BufferSpace writing

src/os/bluestore/BlueStore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ class BlueStore : public ObjectStore,
10491049

10501050
void bound_encode_spanning_blobs(size_t& p);
10511051
void encode_spanning_blobs(ceph::buffer::list::contiguous_appender& p);
1052-
BlobRef get_spanning_blob(int id) {
1052+
BlobRef& get_spanning_blob(int id) {
10531053
auto p = spanning_blob_map.find(id);
10541054
ceph_assert(p != spanning_blob_map.end());
10551055
return p->second;

0 commit comments

Comments
 (0)