OSDN Git Service

recoveryStopsHere() must check the resource manager ID.
authorRobert Haas <rhaas@postgresql.org>
Mon, 18 Apr 2011 12:27:19 +0000 (08:27 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 18 Apr 2011 12:27:19 +0000 (08:27 -0400)
commitaea1f24c2c25f01540435ded6ba611016392ef06
tree5dae98316b11f0c9f9904b0e1bbc62375370124f
parentc29abc8b6f5334ac2f7046a33b233776ead12395
recoveryStopsHere() must check the resource manager ID.

Before commit c016ce728139be95bb0dc7c4e5640507334c2339, this wasn't
needed, but now that multiple resource manager IDs can percolate down
through here, we have to make sure we know which one we've got.
Otherwise, we can confuse (for example) an XLOG_XACT_COMMIT record
with an XLOG_CHECKPOINT_SHUTDOWN record.

Review by Jaime Casanova
src/backend/access/transam/xlog.c