Skip to content

Commit f2fdffa

Browse files
committed
crimson/osd/replicated_backend: mark all pglog entries as unrollbackable
when submitting transactions Signed-off-by: Xuehan Xu <[email protected]>
1 parent d32c879 commit f2fdffa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/crimson/osd/replicated_backend.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ ReplicatedBackend::_submit_transaction(std::set<pg_shard_t>&& pg_shards,
5252
bufferlist encoded_txn;
5353
encode(txn, encoded_txn);
5454

55+
for (auto &le : log_entries) {
56+
le.mark_unrollbackable();
57+
}
58+
5559
auto sends = std::make_unique<std::vector<seastar::future<>>>();
5660
for (auto pg_shard : pg_shards) {
5761
if (pg_shard != whoami) {

0 commit comments

Comments
 (0)