Cleanup initialization of Hot Standby. Clarify working with reanalysis
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 13 May 2010 11:15:38 +0000 (11:15 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 13 May 2010 11:15:38 +0000 (11:15 +0000)
commit8431e296ea4cfc8dd30053f89b6970ef16ddbc61
treed1324001b1dd82e4633afec0df71a8d24bbf5fe8
parentc2e7f78abed4cdc447067fbbdf1f0161f103b55c
Cleanup initialization of Hot Standby. Clarify working with reanalysis
of requirements and documentation on LogStandbySnapshot(). Fixes
two minor bugs reported by Tom Lane that would lead to an incorrect
snapshot after transaction wraparound. Also fix two other problems
discovered that would give incorrect snapshots in certain cases.
ProcArrayApplyRecoveryInfo() substantially rewritten. Some minor
refactoring of xact_redo_apply() and ExpireTreeKnownAssignedTransactionIds().
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/standby.c
src/include/storage/procarray.h
src/include/storage/standby.h