SERVER-138787ClosedFixed

Emit endOfTransaction for prepared replica-set and single-shard transaction

Change streams synthesized an {{endOfTransaction}} event only for unprepared multi-document transactions, whose commit is the final {{applyOps}} entry. A prepared replica-set/single-shard transaction commits through a standalone {{commitTransaction}} oplog entry instead, so it currently produces no event. This change teaches the replica-set/single-shard unwind stage that commit shape and records on the commit entry that the write path for end-of-transaction was enabled at transaction commit time

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue
Change streams
Labels
Tags and classification

No labels assigned.