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

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

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

      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@mongodb.com Esha Maharishi (Inactive)
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: