]> granicus.if.org Git - postgresql/commit
Fix confusion on the padding of GIDs in on commit and abort records.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 17 Apr 2018 20:10:42 +0000 (16:10 -0400)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 17 Apr 2018 20:10:42 +0000 (16:10 -0400)
commitcf5a1890592bfa2f45d306789533efba97496233
tree92f978a9d69f0235d83359574767758d96b5f70f
parentb7e2cbc5b49fbab5bc286b9e4cd4062a6703e7a7
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
src/backend/access/rmgrdesc/xactdesc.c
src/backend/access/transam/twophase.c
src/backend/access/transam/xact.c
src/include/access/xact.h
src/include/access/xlog_internal.h