Fix an oversight in ReorderBufferFinishPrepared.
authorAmit Kapila <akapila@postgresql.org>
Tue, 23 Feb 2021 04:17:41 +0000 (09:47 +0530)
committerAmit Kapila <akapila@postgresql.org>
Tue, 23 Feb 2021 04:17:41 +0000 (09:47 +0530)
commitade89ba5f408e6034db7cc8a2c9b7858f5a214c4
treefcdf6dd5235d1b77aa68db853f1227ddc0fe14b2
parentbc617a7b1cada2ec5f8b9d45a4312e49fc1766ad
Fix an oversight in ReorderBufferFinishPrepared.

We don't have anything to decode in a transaction if ReorderBufferTXN
doesn't exist by the time we decode the commit prepared. So don't create a
new ReorderBufferTXN here. This is an oversight in commit a271a1b5.

Reported-by: Markus Wanner
Discussion: https://postgr.es/m/dbec82e2-dbd7-95a2-c6b6-e488cbbdf853@bluegap.ch
src/backend/replication/logical/reorderbuffer.c