This is an automated email from the git hooks/post-receive script.
rharwood pushed a commit to branch master
in repository gssproxy.
The following commit(s) were added to refs/heads/master by this push:
new cb76141 Unlock cond_mutex before pthread exit in gp_worker_main()
cb76141 is described below
commit cb761412e299ef907f22cd7c4146d50c8a792003
Author: Guiyao <guiyao(a)huawei.com>
AuthorDate: Thu Mar 26 06:33:35 2020 +0000
Unlock cond_mutex before pthread exit in gp_worker_main()
Signed-off-by: GuiYao <guiyao(a)huawei.com>
[rharwood(a)redhat.com: whitespace, tweak commit message]
Reviewed-by: Robbie Harwood <rharwood(a)redhat.com>
---
src/gp_workers.c | 1 +
1 file changed, 1 insertion(+)
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);
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date