From: Samuel Just Date: Wed, 26 May 2021 04:43:27 +0000 (+0000) Subject: test/crimson/test_backfill: fix captured bindings X-Git-Tag: v17.1.0~1830^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6bc7614f633938bb9aff93b533df74a6a7023fee;p=ceph.git test/crimson/test_backfill: fix captured bindings Signed-off-by: Samuel Just --- diff --git a/src/test/crimson/test_backfill.cc b/src/test/crimson/test_backfill.cc index 8f3bc0d9b1d0..6d7d62ce5be4 100644 --- a/src/test/crimson/test_backfill.cc +++ b/src/test/crimson/test_backfill.cc @@ -448,7 +448,8 @@ namespace StoreRandomizer { FakeStore mutate(const FakeStore& source_store) { FakeStore mutated_store; source_store.list(hobject_t{}, [&] (const auto& kv) { - const auto& [ oid, version ] = kv; + const auto &oid = kv.first; + const auto &version = kv.second; execute_random( [] { /* just drop the entry */ }, [&] { mutated_store.push(oid, version); },