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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • None
    • 3
    • TBD
    • 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:
            Unassigned
            Reporter:
            Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: