Get rid of CollectionShardingState/Runtime::get_UNSAFE

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 5.2.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • Sharding EMEA 2021-10-18
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The CollectionShardingState/Runtime::get_UNSAFE calls seem to have been added just for a single unit-test and they seem very tempting for someone to find a creative use. We should throw them out and instead just acquire lock in the unit-test.

            Assignee:
            Kaloian Manassiev
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: