diff options
-rw-r--r-- | gs/base/gp_psync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/base/gp_psync.c b/gs/base/gp_psync.c index 6ddf26653..d7a901f63 100644 --- a/gs/base/gp_psync.c +++ b/gs/base/gp_psync.c | |||
@@ -229,7 +229,7 @@ gp_monitor_leave(gp_monitor * mona) | |||
229 | int scode = 0; | 229 | int scode = 0; |
230 | 230 | ||
231 | #ifdef GS_RECURSIVE_MUTEXATTR | 231 | #ifdef GS_RECURSIVE_MUTEXATTR |
232 | scode = pthread_mutex_lock(mon); | 232 | scode = pthread_mutex_unlock(mon); |
233 | #else | 233 | #else |
234 | if (pthread_equal(pthread_self(),((gp_pthread_recursive_t *)mona)->self_id)) { | 234 | if (pthread_equal(pthread_self(),((gp_pthread_recursive_t *)mona)->self_id)) { |
235 | if ((--((gp_pthread_recursive_t *)mona)->lcount) == 0) { | 235 | if ((--((gp_pthread_recursive_t *)mona)->lcount) == 0) { |