SERVER-138381ClosedFixed
Synthesize endOfTransaction marker from applyOps
For replica set and single shard transactions, gate the synthesis of the {{endOfTransaction}} change events on the {{allowEndOfTransaction}} flag in the final applyOps oplog entry if the change stream is opened with the {{showEndOfTransaction}} option set to {{whenAvailable}} or {{required}} and both the server parameter {{allowEndOfTransaction}} and the feature flag {{featureFlagEndOfTransactionEventSynthesis}} are enabled. The legacy path for emitting {{endOfTransaction}} events from the fina