7.0 -- Coverity analysis defect 168643: Data race condition

XMLWordPrintableJSON

    • Replication
    • ALL
    • Repl 2025-03-31
    • None
    • 3
    • 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/db/repl/tenant_migration_donor_service.cpp:489: MISSING_LOCK 168643 Accessing "this->this->_stateDoc" without holding lock "mongo::TenantMigrationDonorService::Instance._mutex". Elsewhere, "mongo::TenantMigrationDonorService::Instance._stateDoc" is written to with "Instance._mutex" held 9 out of 9 times.

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

                Created:
                Updated:
                Resolved: