Systems that need to implement "read your own writes" for uncommitted storage transactions are currently implemented as decorations on the OperationContext. To be able to support multi-document transactions and SideTransactions code needs to manually attach/detach the decoration from OperationContext in the TransactionParticipant.
If we instead had the RecoveryUnit decorable we can build this handling into the WriteUnitOfWork::RecoveryUnitState used by the TransactionParticipant
- is depended on by
SERVER-51236 Merge UncommittedCollections with UncommittedCatalogUpdates
- is duplicated by
SERVER-62059 Make the RecoveryUnit decorable
- related to
SERVER-57121 Collection isolation should work in SideTransaction