Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0303bc

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

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
@@ -809,11 +809,9 @@ static XLogSegNo openLogSegNo = 0;
809809

810810
/*
811811
* These variables are used similarly to the ones above, but for reading
812-
* the XLOG. Note, however, that readOff generally represents the offset
813-
* of the page just read, not the seek position of the FD itself, which
814-
* will be just past that page. readLen indicates how much of the current
815-
* page has been read into readBuf, and readSource indicates where we got
816-
* the currently open file from.
812+
* the XLOG. readOff is the offset of the page just read, readLen
813+
* indicates how much of it has been read into readBuf, and readSource
814+
* indicates where we got the currently open file from.
817815
* Note: we could use Reserve/ReleaseExternalFD to track consumption of
818816
* this FD too; but it doesn't currently seem worthwhile, since the XLOG is
819817
* not read by general-purpose sessions.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp