Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-91872

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Ali Mir
            Reporter:
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: