From: Samuel Just Date: Tue, 25 May 2021 00:46:23 +0000 (-0700) Subject: crimson/.../staged-fltree/tree_utils: fix cursor binding X-Git-Tag: v17.1.0~1830^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=697582419593b2c29cc91593cc76cb33f661e4fa;p=ceph.git crimson/.../staged-fltree/tree_utils: fix cursor binding Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/onode_manager/staged-fltree/tree_utils.h b/src/crimson/os/seastore/onode_manager/staged-fltree/tree_utils.h index ac30474251bc..a0ac707cd255 100644 --- a/src/crimson/os/seastore/onode_manager/staged-fltree/tree_utils.h +++ b/src/crimson/os/seastore/onode_manager/staged-fltree/tree_utils.h @@ -300,7 +300,8 @@ class TreeBuilder { return tree->insert( t, p_kv->key, {p_kv->value.get_payload_size()} ).safe_then([&t, this, p_kv](auto ret) { - auto& [cursor, success] = ret; + auto success = ret.second; + auto cursor = std::move(ret.first); initialize_cursor_from_item(t, p_kv->key, p_kv->value, cursor, success); #ifndef NDEBUG validate_cursor_from_item(p_kv->key, p_kv->value, cursor);