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

Potential race in DBConfig::isSharded

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL

      https://github.com/mongodb/mongo/blob/268d7f361a5bf11f61b9cebab7ce2d9d86c5e14d/src/mongo/s/config.cpp#L149-L157

      the first _shardingEnabled check can lead to a race. If this check does not need lock than then second check should be removed.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: