Deduplicate cluster createIndexes code by exposing a cluster::createIndexes function

    • 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.

            Assignee:
            Unassigned
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: