Avoid deadlock by ensuring that a rd-lock holder does not request another rd or
authorPavan Deolasee <[email protected]>
Mon, 30 Nov 2015 07:27:36 +0000 (12:57 +0530)
committerPavan Deolasee <[email protected]>
Mon, 30 Nov 2015 07:27:36 +0000 (12:57 +0530)
commit85ec87c1ed843d0af77a330fb426d86bcbf85489
treed8b7124e8aace43c39c6b9cfc58f56aff0e6d3dc
parenta8b0c18717515cd6f5256abf897efd5bf88fdf86
Avoid deadlock by ensuring that a rd-lock holder does not request another rd or
wr-lock

While its generally safe for threads to acquire same pthread_rwlock in READ
mode multiple times, if there is a writer blocked on the lock, this can cause
deadlock. So avoid that coding practice.
src/gtm/recovery/register_common.c
src/gtm/recovery/register_gtm.c
src/include/gtm/register.h