]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/crimson/test_backfill: fix captured bindings
authorSamuel Just <sjust@redhat.com>
Wed, 26 May 2021 04:43:27 +0000 (04:43 +0000)
committerSamuel Just <sjust@redhat.com>
Wed, 26 May 2021 04:43:39 +0000 (04:43 +0000)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/test/crimson/test_backfill.cc

index 8f3bc0d9b1d0b875e1ce76fbfe5815d20fa7d438..6d7d62ce5be4b567bbd64c0160afe566ef4a23b8 100644 (file)
@@ -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); },