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

Remove the 'chunks map' from CollectionMetadata

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.3
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2018-03-12

      Currently the CollectionMetadata used for filtering contains copy of a subset of the ChunkManager's map of chunk ranges. This is only used for the range deleter and for figuring out when the last chunk is being moved out of a shard.

      In order to make the CollectionMetadata a thin wrapper around the ChunkManager, we should remove these usages of CollectionMetadata::_chunksMap and replace them with calls to the ChunkManager itself.

      As part of this ticket we should also consider giving CollectionMetadata a by-value semantics.

            Assignee:
            martin.neupauer@mongodb.com Martin Neupauer
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: