]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix lambda capture of a non-variable 40637/head
authorRonen Friedman <rfriedma@redhat.com>
Wed, 7 Apr 2021 05:42:02 +0000 (08:42 +0300)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 7 Apr 2021 05:47:36 +0000 (08:47 +0300)
One cannot just capture a structured binding "non-variable".

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/rgw/rgw_log_backing.cc

index c3037e13048bbb31832af893b914aa513aa76373..8ed52e8849c994281f79a27333a11dd415d42925 100644 (file)
@@ -665,7 +665,7 @@ bs::error_code logback_generations::remove_empty(optional_yield y) noexcept {
       for (const auto& [gen_id, e] : es) {
        ceph_assert(e.pruned);
        auto ec = log_remove(ioctx, shards,
-                            [this, gen_id](int shard) {
+                            [this, gen_id=gen_id](int shard) {
                               return this->get_oid(gen_id, shard);
                             }, (gen_id == 0), y);
        if (ec) {