Content-Length: 268376 | pFad | http://github.com/postgrespro/postgres/commit/da9f6a78ef84898ccdf7855089aa08e7524dfbdc

6A Fix incorrect comment about XLogRecordBlockHeader.data_length field. · postgrespro/postgres@da9f6a7 · GitHub
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

Lines changed: 4 additions & 3 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/da9f6a78ef84898ccdf7855089aa08e7524dfbdc

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy