Correct StartupSUBTRANS for page wraparound
Simon Riggs <simon@2ndQuadrant.com>
Correct StartupSUBTRANS for page wraparound StartupSUBTRANS() incorrectly handled cases near the max pageid in the subtrans data structure, which in some cases could lead to errors in startup for Hot Standby. This patch wraps the pageids correctly, avoiding any such errors. Identified by exhaustive crash testing by Jeff Janes. Jeff Janes
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/subtrans.c | modified | +5 −1 |