CollectionShardingState::_getMetadataWithVersionCheckAt should return boost::none if the client did not send a shardVersion for the ns

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2019-08-26
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This is just code cleanup.

      Currently CollectionShardingState::_getMetadataWithVersionCheckAt returns an "UnshardedCollection" ScopedCollectionMetadata, but it should just return boost::none, since its caller (getOrphansFilter) converts a boost::none return value into an "UnshardedCollection" ScopedCollectionMetadata anyway.

            Assignee:
            Esha Maharishi (Inactive)
            Reporter:
            Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: