Coverity analysis defect 151229: Data race condition

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • ALL
    • Programmability 2025-09-01
    • 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/util/concurrent_shared_values_map.h:157: MISSING_LOCK 151229 Accessing "this->_map" without holding lock "mongo::ConcurrentSharedValuesMap<mongo::UUID, mongo::PreImagesTruncateMarkersPerNsUUID, mongo::UUID::Hash>._mapModificationMutex". Elsewhere, "mongo::ConcurrentSharedValuesMap<mongo::UUID, mongo::PreImagesTruncateMarkersPerNsUUID, mongo::UUID::Hash>._map" is written to with "ConcurrentSharedValuesMap._mapModificationMutex" held 2 out of 2 times.

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

              Created:
              Updated:
              Resolved: