Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-104347

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

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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 Unassigned
            Reporter:
            lynne.wang@mongodb.com Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: