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

Make CollectionShardingState a decoration on Collection

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Sharding
    • Sharding 18 (08/05/16), Sharding 2016-08-29

      Currently, the CollectionShardingState is kept on a map, which tracks the set of {{Collection}}s on the server. We should instead make it a decoration on the Collection in order to avoid the separate map lookup and mutex.

      This also better ties the lifetime of a collection with that of its sharding state and allows us to potentially prevent direct drop of sharded collections.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: