]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Correct StartupSUBTRANS for page wraparound
authorSimon Riggs <simon@2ndQuadrant.com>
Fri, 19 Feb 2016 08:32:28 +0000 (08:32 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Fri, 19 Feb 2016 08:32:28 +0000 (08:32 +0000)
commit6830cae5f862276a52dc8a50edf1d34996539a3c
treec82df194398e0213b35d52e72e2697400baba83d
parentbec4d0ffb2fb50d2d36dca99599514eef315c865
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
src/backend/access/transam/subtrans.c