-
Type: Task
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
2
Recently in sharding we started using more and more the internal transactions, especially for committing on the sharding catalog in ddl coordinators. This ticket propose to introduce a utility
sharding_catalog_txn_utils::
(or any other name) to simplify the readability of the internal transactions code as done for the rename collection coordinator.
The library for now would expose utility methods such as https://github.com/10gen/mongo/blob/63199295a3152a8dbde645ca95f69d92aa3f30f6/src/mongo/db/s/rename_collection_coordinator.cpp#L229C1-L413C2
and the runTransactionOnShardingCatalog
Which can be already re-used by the createCollectionCoordinator