Coverity analysis defect 174952: Data race condition

XMLWordPrintableJSON

    • Replication
    • Fully Compatible
    • ALL
    • Repl 2025-07-07, Repl 2025-07-21
    • None
    • 3
    • TBD
    • 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
      /data/mci/9b4aa92627ae9d27f3443cd90d3d586b/bazel_cache/a16d34dce8e2115e41b8b2058a76fa0d/execroot/_main/src/mongo/db/repl/intent_registry.cpp:290: MISSING_LOCK 174952 Accessing "this->_enabled" without holding lock "mongo::RWMutex._writeMutex". Elsewhere, "mongo::rss::consensus::IntentRegistry._enabled" is written to with "RWMutex._writeMutex" held 2 out of 2 times (2 of these accesses strongly imply that it is necessary).

              Assignee:
              Sean Zimmerman
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: