-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
🟥 DDL
-
None
-
None
-
None
-
None
-
None
-
None
ShardServerProcessInterface::createIndexesOnEmptyCollection and the router-level CreateIndexes command share nearly identical routing logic (CollectionRouter setup, timeseries namespace rewriting, scatter-gather targeting, and response validation).
We should deduplicate by exposing a cluster::createIndexes() function, following the established pattern of cluster::createCollection() and cluster::write(). Both call sites would then delegate to the shared function.
- related to
-
SERVER-123152 Fix MongoProcessInterface timeseries createIndexes routing
-
- Closed
-
-
SERVER-123191 Deduplicate cluster listIndexes code by exposing a cluster::listIndexes function
-
- Needs Scheduling
-