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

Potential race in DBConfig::isSharded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc1
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: