Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit da9f6a7

Browse files
committed
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
1 parent 0916eba commit da9f6a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/include/access/xlogrecord.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ typedef struct XLogRecord
7373
/*
7474
* Header info for block data appended to an XLOG record.
7575
*
76+
* 'data_length' is the length of the rmgr-specific payload data associated
77+
* with this block. It does not include the possible full page image, nor
78+
* XLogRecordBlockHeader struct itself.
79+
*
7680
* Note that we don't attempt to align the XLogRecordBlockHeader struct!
7781
* So, the struct must be copied to aligned local storage before use.
78-
* 'data_length' is the length of the payload data associated with this,
79-
* and includes the possible full-page image, and rmgr-specific data. It
80-
* does not include the XLogRecordBlockHeader struct itself.
8182
*/
8283
typedef struct XLogRecordBlockHeader
8384
{

0 commit comments

Comments
 (0)