]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/os/seastore: use map::merge() to merge maps
authorKefu Chai <kchai@redhat.com>
Fri, 7 May 2021 13:36:48 +0000 (21:36 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 7 May 2021 13:40:46 +0000 (21:40 +0800)
commit79be27fd91f08d746ca6f73cd93dee184df61a1b
tree0e5f685903e60e3cdf97ad2827be9b2e36495e02
parentc8f82e2f88b6dfc5cd44cc8b3b0e802c371b3a52
crimson/os/seastore: use map::merge() to merge maps

C++17's std::map allows us to merge two maps, and in this case, we can
even consume `child_result`. so map::merge() is used instead of insert()
in hope to avoid the memcpy and allocation of pair<> nodes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.cc