Coverity analysis defect 98532: Data race condition

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Thread shared data is accessed without holding an appropriate lock, possibly causing a race condition

      Defect 98532 (STATIC_C)
      Checker MISSING_LOCK (subcategory none)
      File: /src/third_party/wiredtiger/src/conn/conn_handle.c
      Function __wt_connection_init
      /src/third_party/wiredtiger/src/conn/conn_handle.c, line: 31
      Accessing "conn->fhqh.tqh_last" without holding lock "_wt_spinlock.lock". Elsewhere, "wt_fh_qh.tqh_last" is accessed with "_wt_spinlock.lock" held 4 out of 5 times.

          	TAILQ_INIT(&conn->fhqh);		/* File list */
      

            Assignee:
            Keith Bostic (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: