]> granicus.if.org Git - postgresql/commit
Check RecoveryInProgress() while holding ProcArrayLock during snapshots.
authorSimon Riggs <simon@2ndQuadrant.com>
Mon, 19 Apr 2010 18:03:38 +0000 (18:03 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Mon, 19 Apr 2010 18:03:38 +0000 (18:03 +0000)
commit7bc76d51fbac35950ae5e5d05535bdc33f93b42c
treec860b8ed6c0d37792b1c33d59cde5487195610b6
parent39bf46384b89b89d3b51bb3cd968d476c1361f95
Check RecoveryInProgress() while holding ProcArrayLock during snapshots.
This prevents a rare, yet possible race condition at the exact moment
of transition from recovery to normal running.
src/backend/storage/ipc/procarray.c