Guiyao <guiyao(a)huawei.com> writes:
Hi,
An unlock was missed before pthread_exit in function gp_worker_main()
Signed-off-by: GuiYao <guiyao(a)huawei.com>
---
diff --git a/src/gp_workers.c b/src/gp_workers.c
index 18f38f6..ae42cef 100644
--- a/src/gp_workers.c
+++ b/src/gp_workers.c
@@ -369,6 +369,7 @@ static void *gp_worker_main(void *pvt)
/* wait for next query */
pthread_cond_wait(&t->cond_wakeup, &t->cond_mutex);
if (t->pool->shutdown) {
+ pthread_mutex_unlock(&t->cond_mutex);
pthread_exit(NULL);
}
}
Hi, thanks for your interest. This has been committed to master as
cb761412e299ef907f22cd7c4146d50c8a792003
Should you wish to do so in the future, we have a webui for pull
requests at
https://pagure.io/gssproxy
Thanks,
--Robbie