Skip to content

Commit af1bc22

Browse files
xxhdx1985126Matan-B
authored andcommitted
crimson/osd/replicated_backend: make sure the check on whether to send
ops to replica osds and the pg log append happens in the same continuation Since backfill relies on the pg log to discover new modifications, we need to make sure backfill always discover the modification that's not sent to replica osds. Signed-off-by: Xuehan Xu <[email protected]>
1 parent fa7ef62 commit af1bc22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crimson/osd/replicated_backend.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ ReplicatedBackend::submit_transaction(
104104
}
105105
}
106106

107+
co_await pg.update_snap_map(log_entries, txn);
108+
107109
std::vector<pg_shard_t> to_push_clone;
108110
std::vector<pg_shard_t> to_push_delete;
109111
auto sends = std::make_unique<std::vector<seastar::future<>>>();
@@ -140,8 +142,6 @@ ReplicatedBackend::submit_transaction(
140142
pg_shard.osd, std::move(m), map_epoch));
141143
}
142144

143-
co_await pg.update_snap_map(log_entries, txn);
144-
145145
pg.log_operation(
146146
std::move(log_entries),
147147
osd_op_p.pg_trim_to,

0 commit comments

Comments
 (0)