Fix thinko introduced in 2bef06d516460 et al.
authorAndres Freund
Sun, 6 Aug 2017 03:52:53 +0000 (20:52 -0700)
committerAndres Freund
Sun, 6 Aug 2017 21:21:25 +0000 (14:21 -0700)
commitd68742562ca48decbad57adf0014aaed788ce372
tree2f317103001db34fc89532ffa1b93c194e8352e6
parent23a2b818f50ff9e1beb73c31cd902a2140476c30
Fix thinko introduced in 2bef06d516460 et al.

The callers for GetOldestSafeDecodingTransactionId() all inverted the
argument for the argument introduced in 2bef06d516460. Luckily this
appears to be inconsequential for the moment, as we wait for
concurrent in-progress transaction when assembling a
snapshot. Additionally this could only make a difference when adding a
second logical slot, because only a pre-existing slot could cause an
issue by lowering the returned xid dangerously much.

Reported-By: Antonin Houska
Discussion: https://postgr.es/m/32704.1496993134@localhost
Backport: 9.4-, where 2bef06d516460 was backpatched to.
src/backend/replication/logical/logical.c
src/backend/replication/logical/snapbuild.c