Hi,
PFA patch which fixes a locking issue in GTM_BeginTransactionMulti
function. If txn_count is more than 1, then gt_TransArrayLock will be
attempted to be locked multiple times inside the loop. The behavior is
really undefined for pthreads and we can see weird hangs here and
there because of it. I guess we got away with this till date because
it was mostly being called with value 1 for txn_count.
Regards,
Nikhils
--
StormDB - http://www.stormdb.com
The Database Cloud
Postgres-XC Support and Service
|