Hi,
If I look at GTM_GetTransactionSnapshot() function, it's taking a READ
lock on GTMTransactions.gt_TransArrayLock. After taking that lock it's
modifying fields like
GTMTransactions.gt_recent_global_xmin
GTMTransactions.gt_transactions_array
Hardly READ type of behavior. This behavior particularly seems
dangerous if multiple threads modify the gt_recent_global_xmin value
above while holding read locks.
Regards,
Nikhils
--
StormDB - http://www.stormdb.com
The Database Cloud
Postgres-XC Support and Service
|