]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd/pg: fix wrong lambda capture of transactions in
authorXuehan Xu <xuxuehan@qianxin.com>
Fri, 9 Aug 2024 05:25:35 +0000 (13:25 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Fri, 9 Aug 2024 07:25:12 +0000 (15:25 +0800)
`PG::submit_error_log()`

Fixes: https://tracker.ceph.com/issues/67450
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/osd/pg.cc

index bb249b8e10e830927e60c5e739f529cdeff22937..9c853fa6bc3c4999eaf7572898f0aa418e16e495 100644 (file)
@@ -1121,10 +1121,10 @@ seastar::future<std::optional<eversion_t>> PG::submit_error_log(
     log_entries, t, peering_state.get_pg_trim_to(),
     peering_state.get_min_last_complete_ondisk());
 
-  return seastar::do_with(log_entries, t, set<pg_shard_t>{},
-    [this, rep_tid](auto& log_entries, auto& t,auto& waiting_on) mutable {
+  return seastar::do_with(log_entries, set<pg_shard_t>{},
+    [this, t=std::move(t), rep_tid](auto& log_entries, auto& waiting_on) mutable {
     return seastar::do_for_each(get_acting_recovery_backfill(),
-      [this, log_entries, t=std::move(t), waiting_on, rep_tid]
+      [this, log_entries, waiting_on, rep_tid]
       (auto& i) mutable {
       pg_shard_t peer(i);
       if (peer == pg_whoami) {