[SERVER-80887] Create a utility for transactions on the sharding catalog Created: 08/Sep/23 Updated: 26/Oct/23 |
|
| Status: | Open |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Enrico Golfieri | Assignee: | Backlog - Catalog and Routing |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | oldshardingemea, shardingemea-qw | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Catalog and Routing
|
| Participants: | |
| Story Points: | 2 |
| Description |
|
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
(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 |