As of SERVER-43859, we have a registry of pending collections (UncommittedCollections) as a decoration on the OperationContext. AutoGetCollection performs collection name lookups starting with the UncommittedCollections registry. The collections in the registry are committed via the RecoveryUnit's onCommit handler, and cleared via the onRollback handler.
This ticket should allow for these UncommittedCollections to be stashed along with other transaction state.
This ticket needs a unit test, but feel free to defer that to a new ticket.
- is depended on by
-
SERVER-44139 Allow collection creation inside a multi-doc txn for a single-node replica set
- Closed
- related to
-
SERVER-45256 Complete TODO listed in SERVER-44138
- Closed