Fix bug in early startup of Hot Standby with subtransactions.

Simon Riggs <simon@2ndQuadrant.com>

Commit: 557433f48ad1e55ce753282f4dfb8ef3606cda8d
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2012-06-08T16:35:22Z
Releases: 9.1.5
Fix bug in early startup of Hot Standby with subtransactions.
When HS startup is deferred because of overflowed subtransactions, ensure
that we re-initialize KnownAssignedXids for when both existing and incoming
snapshots have non-zero qualifying xids.

Fixes bug #6661 reported by Valentine Gogichashvili.

Analysis and fix by Andres Freund

Files

PathChange+/−
src/backend/storage/ipc/procarray.c modified +31 −1