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

Commit f98635a

Browse files
committed
Fix outdated comment that talked about seek position of WAL file.
Since commit c24dcd0, we have been using pg_pread() to read the WAL file, which doesn't change the seek position (unless we fall back to the implementation in src/port/pread.c). Update comment accordingly. Backpatch-through: 12, where we started to use pg_pread()
1 parent fb3d6b0 commit f98635a

File tree

1 file changed

+3
-5
lines changed
  • src/backend/access/transam

1 file changed

+3
-5
lines changed

src/backend/access/transam/xlog.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,11 +785,9 @@ static XLogSegNo openLogSegNo = 0;
785785

786786
/*
787787
* These variables are used similarly to the ones above, but for reading
788-
* the XLOG. Note, however, that readOff generally represents the offset
789-
* of the page just read, not the seek position of the FD itself, which
790-
* will be just past that page. readLen indicates how much of the current
791-
* page has been read into readBuf, and readSource indicates where we got
792-
* the currently open file from.
788+
* the XLOG. readOff is the offset of the page just read, readLen
789+
* indicates how much of it has been read into readBuf, and readSource
790+
* indicates where we got the currently open file from.
793791
*/
794792
static int readFile = -1;
795793
static XLogSegNo readSegNo = 0;

0 commit comments

Comments
 (0)