aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogutils.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-05-12 14:43:57 +0900
committerMichael Paquier <michael@paquier.xyz>2020-05-12 14:43:57 +0900
commit078c9cd258e5ad8f54081c971b7b927f845e7505 (patch)
tree8071b49cc55850c53ba4a5853a4c9e2ed34bb79d /src/backend/access/transam/xlogutils.c
parent81ec990a23b9cbfaa5684e90091164f1d85f24d3 (diff)
downloadpostgresql-078c9cd258e5ad8f54081c971b7b927f845e7505.tar.gz
postgresql-078c9cd258e5ad8f54081c971b7b927f845e7505.zip
Fix comment in xlogutils.c
The existing callers of XLogReadDetermineTimeline() performing recovery need to check a replay LSN position when determining on which timeline to read a WAL page. A portion of the comment describing this function said exactly that, while referring to a routine for fetching a write LSN, something not available in recovery. Author: Kyotaro Horiguchi Discussion: https://postgr.es/m/20200511.101619.2043820539323292957.horikyota.ntt@gmail.com
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
-rw-r--r--src/backend/access/transam/xlogutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlogutils.c b/src/backend/access/transam/xlogutils.c
index bbd801513a8..0bb69447c26 100644
--- a/src/backend/access/transam/xlogutils.c
+++ b/src/backend/access/transam/xlogutils.c
@@ -681,10 +681,10 @@ XLogTruncateRelation(RelFileNode rnode, ForkNumber forkNum,
* copied to a new timeline.
*
* The caller must also make sure it doesn't read past the current replay
- * position (using GetWalRcvWriteRecPtr) if executing in recovery, so it
+ * position (using GetXLogReplayRecPtr) if executing in recovery, so it
* doesn't fail to notice that the current timeline became historical. The
* caller must also update ThisTimeLineID with the result of
- * GetWalRcvWriteRecPtr and must check RecoveryInProgress().
+ * GetXLogReplayRecPtr and must check RecoveryInProgress().
*/
void
XLogReadDetermineTimeline(XLogReaderState *state, XLogRecPtr wantPage, uint32 wantLength)