diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2021-06-16 12:34:32 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2021-06-16 12:37:13 +0300 |
commit | f98635ad6295ad142779756e60325a8e7f825909 (patch) | |
tree | fe0e04f5727808cdb4057a58e4aee5b1a66e2f5a /src | |
parent | fb3d6b0e1aa41518857ff12534bef49503ce7575 (diff) | |
download | postgresql-f98635ad6295ad142779756e60325a8e7f825909.tar.gz postgresql-f98635ad6295ad142779756e60325a8e7f825909.zip |
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()
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/transam/xlog.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index e52e805708b..67dcd1e126d 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -785,11 +785,9 @@ static XLogSegNo openLogSegNo = 0; /* * These variables are used similarly to the ones above, but for reading - * the XLOG. Note, however, that readOff generally represents the offset - * of the page just read, not the seek position of the FD itself, which - * will be just past that page. readLen indicates how much of the current - * page has been read into readBuf, and readSource indicates where we got - * the currently open file from. + * the XLOG. readOff is the offset of the page just read, readLen + * indicates how much of it has been read into readBuf, and readSource + * indicates where we got the currently open file from. */ static int readFile = -1; static XLogSegNo readSegNo = 0; |