7.0 -- Coverity analysis defect 169041: Data race condition

XMLWordPrintableJSON

    • Storage Execution
    • ALL
    • Storage Execution 2025-04-14
    • None
    • 3
    • 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/storage/collection_markers.cpp:523: MISSING_LOCK 169041 Accessing "this->collectionMarkers->_minBytesPerMarker" without holding lock "mongo::CollectionTruncateMarkers._markersMutex". Elsewhere, "mongo::CollectionTruncateMarkers._minBytesPerMarker" is written to with "CollectionTruncateMarkers._markersMutex" held 1 out of 1 times (1 of these accesses strongly imply that it is necessary).

            Assignee:
            Haley Connelly
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: