7.0 -- Coverity analysis defect 169977: Data race condition

XMLWordPrintableJSON

    • Replication
    • ALL
    • v8.1, v8.0, v7.0
    • Repl 2025-04-14, Repl 2025-04-28, Repl 2025-05-12
    • 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/modules/enterprise/src/fcbis/file_copy_based_initial_syncer.cpp:921: MISSING_LOCK 169977 Accessing "this->this->_syncingFilesState.lastAppliedOpTimeOnSyncSrc" without holding lock "mongo::repl::FileCopyBasedInitialSyncer._mutex". Elsewhere, "mongo::repl::FileCopyBasedInitialSyncer::SyncingFilesState.lastAppliedOpTimeOnSyncSrc" is written to with "FileCopyBasedInitialSyncer._mutex" held 1 out of 1 times (1 of these accesses strongly imply that it is necessary).

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

              Created:
              Updated: