diff --git a/src/util/src/.tqueue.c.swp b/src/util/src/.tqueue.c.swp new file mode 100644 index 0000000000000000000000000000000000000000..40a09d5f638ccd61507bd50661e64d34cccce61c Binary files /dev/null and b/src/util/src/.tqueue.c.swp differ diff --git a/src/util/src/tqueue.c b/src/util/src/tqueue.c index d667b2428fac7e842125fd35a0a08b47816a7fb5..bddf68932da310431a5be53ee9d2fed79bd89945 100644 --- a/src/util/src/tqueue.c +++ b/src/util/src/tqueue.c @@ -282,7 +282,7 @@ void taosRemoveFromQset(taos_qset p1, taos_queue p2) { pthread_mutex_lock(&queue->mutex); atomic_sub_fetch_32(&qset->numOfItems, queue->numOfItems); queue->qset = NULL; - pthread_mutex_lock(&queue->mutex); + pthread_mutex_unlock(&queue->mutex); } }