postgresql/src/backend
Michael Paquier c963e84fb8 Make origin data initialization consistent other fields in 2PC header
As of 1eb6d65, the origin data is optionally stored in a 2PC file
header, with the data filled in EndPrepare() even in the default case
where there is no origin data to add.  This was inconsistent with all
the other fields of TwoPhaseFileHeader which are initialized in
StartPrepare(), so move the initialization of origin_lsn and
origin_timestamp there instead.  The effect of missing the
initialization at this early stage is only cosmetic based on the current
logic of the code, but could have led to issues in the long-term, and it
is more consistent done this way.

Reported-by: Ranier Vilela
Discussion: https://postgr.es/m/CAEudQAooECJ+gU_RZB-yhioPOV94R4ucoHAf68PiJhLpgpVpBw@mail.gmail.com
2022-02-14 09:30:35 +09:00
..
access Make origin data initialization consistent other fields in 2PC header 2022-02-14 09:30:35 +09:00
bootstrap pg_upgrade: Preserve relfilenodes and tablespace OIDs. 2022-01-17 13:40:27 -05:00
catalog Add UNIQUE null treatment option 2022-02-03 11:48:21 +01:00
commands Consolidate VACUUM xid cutoff logic. 2022-02-11 18:26:15 -08:00
executor Test, don't just Assert, that mergejoin's inputs are in order. 2022-02-05 11:59:29 -05:00
foreign Update copyright for 2022 2022-01-07 19:04:57 -05:00
jit Track LLVM 14 API changes, up to 2022-01-30. 2022-02-04 16:16:10 +13:00
lib Update copyright for 2022 2022-01-07 19:04:57 -05:00
libpq Remove MaxBackends variable in favor of GetMaxBackends() function. 2022-02-08 15:53:19 -05:00
main windows: Improve crash / assert / exception handling. 2022-02-02 18:33:25 -08:00
nodes Add UNIQUE null treatment option 2022-02-03 11:48:21 +01:00
optimizer Don't use_physical_tlist for an IOS with non-returnable columns. 2022-02-11 15:24:02 -05:00
parser Add UNIQUE null treatment option 2022-02-03 11:48:21 +01:00
partitioning Fix misuse of "const" qualifier. 2022-02-13 19:20:56 -05:00
po Translation updates 2021-06-21 12:33:50 +02:00
port Update copyright for 2022 2022-01-07 19:04:57 -05:00
postmaster Remove MaxBackends variable in favor of GetMaxBackends() function. 2022-02-08 15:53:19 -05:00
regex Call pg_newlocale_from_collation() also with default collation 2022-01-20 09:50:18 +01:00
replication Silence minor compiler warnings. 2022-02-13 13:06:55 -05:00
rewrite Update copyright for 2022 2022-01-07 19:04:57 -05:00
snowball Update copyright for 2022 2022-01-07 19:04:57 -05:00
statistics Fix various typos, grammar and code style in comments and docs 2022-01-25 09:40:04 +09:00
storage Fix DROP {DATABASE,TABLESPACE} on Windows. 2022-02-12 10:21:23 +13:00
tcop Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsearch Update copyright for 2022 2022-01-07 19:04:57 -05:00
utils Make timeout.c more robust against missed timer interrupts. 2022-02-10 11:52:28 -05:00
.gitignore
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Server-side gzip compression. 2022-01-24 15:13:18 -05:00
nls.mk Report progress of startup operations that take a long time. 2021-10-25 11:51:57 -04:00