Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2210

Coverity analysis defect 101713: Waiting while holding a lock

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      A lock is held while waiting for a long running or blocking operation to complete

      Defect 101713 (STATIC_C)
      Checker SLEEP (subcategory none)
      File: /src/mongoc/mongoc-topology.c
      Function mongoc_topology_invalidate_server
      /src/mongoc/mongoc-topology.c, line: 823
      Calling function "pthread_mutex_lock" acquires lock "topology->mutex".

             mongoc_mutex_lock (&topology->mutex);
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: