FileCopyBasedInitialSyncer::_stats is read without synchronization in _extendBackupCursor fetcher callback

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • Repl 2024-07-08, Repl 2024-07-22, Repl 2024-08-05
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The FCBIS _stats member should be protected by the mutex, as indicated in the header comments. However, it can be written to in an synchronized way by the fetcher callback created in extendBackupCursor here:
      https://github.com/10gen/mongo/blob/cbb2dd5bbf0407792b3a808bd8adc131e6fb9b51/src/mongo/db/modules/enterprise/src/fcbis/file_copy_based_initial_syncer.cpp#L959

            Assignee:
            Ali Mir
            Reporter:
            George Wangensteen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: