]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/shard_services: Remove implicit capture of this
authorAishwarya Mathuria <amathuri@redhat.com>
Thu, 10 Apr 2025 06:27:25 +0000 (06:27 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Thu, 22 May 2025 06:20:38 +0000 (06:20 +0000)
Implicit capture of this with a capture default of = is deprecated.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
src/crimson/osd/shard_services.cc

index 517cf6580bd34a5a453b47cbb9ee4456c58390de..e83084b9fc90e7f9dc423c21cd4acacf67ab0145 100644 (file)
@@ -94,7 +94,7 @@ seastar::future<> PerShardState::broadcast_map_to_pgs(
   auto &pgs = pg_map.get_pgs();
   return seastar::parallel_for_each(
     pgs.begin(), pgs.end(),
-    [=, &shard_services](auto& pg) {
+    [this, &shard_services, epoch](auto& pg) {
       return shard_services.start_operation<PGAdvanceMap>(
        pg.second,
        shard_services,