Remove isSharded() check in SessionsCollectionConfigServer::_generateIndexesIfNeeded()

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • 2
    • None
    • 3
    • TBD
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      This "isSharded" check is redundant: _generateIndexesIfNeeded is only ever called after _shardCollectionIfNeeded, which should have sharded the collection. Although this node's CatalogCache might now be stale, whenever it later dispatches the createIndexes cmd the shard will reject the request and inform the router that it is stale. It can be safely removed.

              Assignee:
              Paolo Polato
              Reporter:
              Lynne Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: