7.0 -- Coverity analysis defect 168888: Data race condition

XMLWordPrintableJSON

    • Catalog and Routing
    • ALL
    • CAR Team 2025-04-28
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Data race condition

      The value of the shared data will be determined by the interleaving of thread execution. Thread shared data is accessed without holding an appropriate lock, possibly causing a race condition
      /src/mongo/db/s/balancer/auto_merger_policy.cpp:66: MISSING_LOCK 168888 Accessing "this->_enabled" without holding lock "mongo::AutoMergerPolicy._mutex". Elsewhere, "mongo::AutoMergerPolicy._enabled" is written to with "AutoMergerPolicy._mutex" held 2 out of 2 times (1 of these accesses strongly imply that it is necessary).

              Assignee:
              Enrico Golfieri
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: