From 60719ef50938e7b21ad66a53fe99960def9fe4be Mon Sep 17 00:00:00 2001 From: Lv9 Date: Wed, 10 Nov 2021 12:46:56 +0800 Subject: [PATCH] Adjust code order --- src/util/src/tqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tqueue.c b/src/util/src/tqueue.c index 6a37f11ece..1ffa94b0df 100644 --- a/src/util/src/tqueue.c +++ b/src/util/src/tqueue.c @@ -258,9 +258,9 @@ void taosCloseQset(taos_qset param) { pthread_mutex_unlock(&qset->mutex); pthread_mutex_destroy(&qset->mutex); + uTrace("qset:%p is closed", qset); tsem_destroy(&qset->sem); free(qset); - uTrace("qset:%p is closed", qset); } // tsem_post 'qset->sem', so that reader threads waiting for it -- GitLab