mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Fix confusion on the padding of GIDs in on commit and abort records.
Review of commit 1eb6d652: It's pointless to add padding to the GID fields,
when the code that follows assumes that there is no alignment, and uses
memcpy(). Remove the pointless padding.
Update comments to note the new fields in the WAL records.
Reviewed-by: Michael Paquier
Discussion: https://www.postgresql.org/message-id/33b787bf-dc20-1161-54e9-3f3b607bf59d%40iki.fi
This commit is contained in:
@@ -1129,9 +1129,11 @@ EndPrepare(GlobalTransaction gxact)
|
||||
gxact->prepare_end_lsn = XLogInsert(RM_XACT_ID, XLOG_XACT_PREPARE);
|
||||
|
||||
if (replorigin)
|
||||
{
|
||||
/* Move LSNs forward for this replication origin */
|
||||
replorigin_session_advance(replorigin_session_origin_lsn,
|
||||
gxact->prepare_end_lsn);
|
||||
}
|
||||
|
||||
XLogFlush(gxact->prepare_end_lsn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user