]> granicus.if.org Git - postgresql/commit
Reduce impact of btree page reuse on Hot Standby by fixing off-by-1 error.
authorSimon Riggs <simon@2ndQuadrant.com>
Mon, 27 Jun 2011 21:15:46 +0000 (22:15 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Mon, 27 Jun 2011 21:15:46 +0000 (22:15 +0100)
commit5cd81b8df0a9f3e4cb407e815b9a789138fd0356
tree142254f0a9e6f89d6f9dfdd0515b6de91d98db1f
parent3a2906545f839aaf3a49f08a6f8d2cb1f841168f
Reduce impact of btree page reuse on Hot Standby by fixing off-by-1 error.
WAL records of type XLOG_BTREE_REUSE_PAGE were generated using a
latestRemovedXid one higher than actually needed because xid used was
page opaque->btpo.xact rather than an actually removed xid.
Noticed on an otherwise quiet system by Noah Misch.

Noah Misch and Simon Riggs
src/backend/access/nbtree/nbtpage.c