Commit da9f6a78 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Fix incorrect comment about XLogRecordBlockHeader.data_length field.

It does not include the possible full-page image. While at it, reformat the
comment slightly to make it more readable.

Reported by Rahila Syed
parent 0916eba1
...@@ -73,11 +73,12 @@ typedef struct XLogRecord ...@@ -73,11 +73,12 @@ typedef struct XLogRecord
/* /*
* Header info for block data appended to an XLOG record. * Header info for block data appended to an XLOG record.
* *
* 'data_length' is the length of the rmgr-specific payload data associated
* with this block. It does not include the possible full page image, nor
* XLogRecordBlockHeader struct itself.
*
* Note that we don't attempt to align the XLogRecordBlockHeader struct! * Note that we don't attempt to align the XLogRecordBlockHeader struct!
* So, the struct must be copied to aligned local storage before use. * So, the struct must be copied to aligned local storage before use.
* 'data_length' is the length of the payload data associated with this,
* and includes the possible full-page image, and rmgr-specific data. It
* does not include the XLogRecordBlockHeader struct itself.
*/ */
typedef struct XLogRecordBlockHeader typedef struct XLogRecordBlockHeader
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment