Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12897

Fix potential data race condition in fail_fs.c

    • Storage Engines
    • 3
    • Megabat - 2024-05-14

      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
      /ext/test/fail_fs/fail_fs.c:244: MISSING_LOCK 138871 Accessing "fail_fs->fail_enabled" without holding lock "FAIL_FILE_SYSTEM.lock". Elsewhere, "FAIL_FILE_SYSTEM.fail_enabled" is written to with "FAIL_FILE_SYSTEM.lock" held 4 out of 4 times.

            Assignee:
            jie.chen@mongodb.com Jie Chen
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: