aboutsummaryrefslogtreecommitdiff
path: root/src/test/perl/PostgresNode.pm
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2019-03-27 21:16:50 +1300
committerThomas Munro <tmunro@postgresql.org>2019-03-27 21:31:29 +1300
commit339927797c8716ca14261af48eaf815b5ee24907 (patch)
tree2e2f143afa2b987230181faa007dbc72cc4a3ba3 /src/test/perl/PostgresNode.pm
parent5601f9fb97d108cb26ee92d0941447f354688421 (diff)
downloadpostgresql-339927797c8716ca14261af48eaf815b5ee24907.tar.gz
postgresql-339927797c8716ca14261af48eaf815b5ee24907.zip
Fix off-by-one error in txid_status().
The transaction ID returned by GetNextXidAndEpoch() is in the future, so we can't attempt to access its status or we might try to read a CLOG page that doesn't exist. The > vs >= confusion probably stemmed from the choice of a variable name containing the word "last" instead of "next", so fix that too. Back-patch to 10 where the function arrived. Author: Thomas Munro Discussion: https://postgr.es/m/CA%2BhUKG%2Buua_BV5cyfsioKVN2d61Lukg28ECsWTXKvh%3DBtN2DPA%40mail.gmail.com
Diffstat (limited to 'src/test/perl/PostgresNode.pm')
0 files changed, 0 insertions, 0 deletions