diff options
| author | Michael Paquier | 2012-07-11 01:00:00 +0000 |
|---|---|---|
| committer | Michael Paquier | 2012-07-11 01:03:07 +0000 |
| commit | 20f55550d003a0a7beccb91dc86f275bea5018ab (patch) | |
| tree | ee5fd06b3d3eb0ae7531e9b5daba6c2c22c41d05 /src | |
| parent | 28f921a1f9fed08e305756a9d327e82a110ce840 (diff) | |
Release GTM thread lock before exit
This avoid to have another thread waiting for it, as it is possible
it waits for it.
Patch by Andrei Martsinchyk
Diffstat (limited to 'src')
| -rw-r--r-- | src/gtm/main/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gtm/main/main.c b/src/gtm/main/main.c index f24a8b77df..cb6ceb018e 100644 --- a/src/gtm/main/main.c +++ b/src/gtm/main/main.c @@ -1122,6 +1122,7 @@ GTM_ThreadMain(void *argp) /* Disconnect node if necessary */ Recovery_PGXCNodeDisconnect(thrinfo->thr_conn->con_port); + GTM_RWLockRelease(&thrinfo->thr_lock); pthread_exit(thrinfo); break; |
