Make CollectionShardingState a decoration on Collection

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              Kaloian Manassiev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: