mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-03 05:26:50 +02:00
Fix outdated comment that talked about seek position of WAL file.
Since commit c24dcd0cfd
, 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()
This commit is contained in:
parent
fb3d6b0e1a
commit
f98635ad62
@ -785,11 +785,9 @@ static XLogSegNo openLogSegNo = 0;
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* These variables are used similarly to the ones above, but for reading
|
* These variables are used similarly to the ones above, but for reading
|
||||||
* the XLOG. Note, however, that readOff generally represents the offset
|
* the XLOG. readOff is the offset of the page just read, readLen
|
||||||
* of the page just read, not the seek position of the FD itself, which
|
* indicates how much of it has been read into readBuf, and readSource
|
||||||
* will be just past that page. readLen indicates how much of the current
|
* indicates where we got the currently open file from.
|
||||||
* page has been read into readBuf, and readSource indicates where we got
|
|
||||||
* the currently open file from.
|
|
||||||
*/
|
*/
|
||||||
static int readFile = -1;
|
static int readFile = -1;
|
||||||
static XLogSegNo readSegNo = 0;
|
static XLogSegNo readSegNo = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user