Skip to content

Commit 0999ac4

Browse files
committed
Improve description of buffer used to store records in WAL reader
The dedicated private buffer to store records is used only for these crossing a page boundary since 285bd0a, but its description did not match completely the reality. Reported-by: Andrey Lepikhov Author: Michael Paquier Discussion: https://postgr.es/m/49518b48-2036-5e43-1818-0f594e375e76@postgrespro.ru
1 parent ea8bc34 commit 0999ac4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/include/access/xlogreader.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ struct XLogReaderState
185185
*/
186186
TimeLineID nextTLI;
187187

188-
/* Buffer for current ReadRecord result (expandable) */
188+
/*
189+
* Buffer for current ReadRecord result (expandable), used when a record
190+
* crosses a page boundary.
191+
*/
189192
char *readRecordBuf;
190193
uint32 readRecordBufSize;
191194

0 commit comments

Comments
 (0)