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