aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_inline.cpp
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-02-14 09:30:35 +0900
committerMichael Paquier <michael@paquier.xyz>2022-02-14 09:30:35 +0900
commitc963e84fb8c8ec75bfdbe6a7a0857ccd1378baa0 (patch)
tree9b53060531b527f4fbbe5ad866a1b537e7706a45 /src/backend/jit/llvm/llvmjit_inline.cpp
parent994d76707a254da6d03e389fa46141371a99e4e1 (diff)
downloadpostgresql-c963e84fb8c8ec75bfdbe6a7a0857ccd1378baa0.tar.gz
postgresql-c963e84fb8c8ec75bfdbe6a7a0857ccd1378baa0.zip
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
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_inline.cpp')
0 files changed, 0 insertions, 0 deletions