postgres.git / summary / log / commit / refs
commit cca2a278609e9ed9bedc4796ae1427fbfb88a2fc
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Thu May 12 19:02:49 2016 +0000
First released in: 9.6.0, 9.5.4
Fix bogus comments
Some comments mentioned XLogReplayBuffer, but there's no such function:
that was an interim name for a function that got renamed to
XLogReadBufferForRedo, before commit 2c03216d831160 was pushed.
src/backend/access/heap/heapam.c | 4 ++--
src/backend/access/transam/xlogutils.c | 7 ++++---
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c
index 5e4ee30071f..2eb04d661dc 100644
--- a/src/backend/access/heap/heapam.c
+++ b/src/backend/access/heap/heapam.c
@@ -7898,8 +7898,8 @@ heap_xlog_visible(XLogReaderState *record)
PageInit(vmpage, BLCKSZ, 0);
/*
- * XLogReplayBufferExtended locked the buffer. But visibilitymap_set
- * will handle locking itself.
+ * XLogReadBufferForRedoExtended locked the buffer. But
+ * visibilitymap_set will handle locking itself.
*/
LockBuffer(vmbuffer, BUFFER_LOCK_UNLOCK);
diff --git a/src/backend/access/transam/xlogutils.c b/src/backend/access/transam/xlogutils.c
index cb4563ed731..51a8e8ddb2e 100644
--- a/src/backend/access/transam/xlogutils.c
+++ b/src/backend/access/transam/xlogutils.c
@@ -426,9 +426,10 @@ XLogReadBufferForRedoExtended(XLogReaderState *record,
* to imply that the page should be dropped or truncated later.
*
* NB: A redo function should normally not call this directly. To get a page
- * to modify, use XLogReplayBuffer instead. It is important that all pages
- * modified by a WAL record are registered in the WAL records, or they will be
- * invisible to tools that that need to know which pages are modified.
+ * to modify, use XLogReadBufferForRedoExtended instead. It is important that
+ * all pages modified by a WAL record are registered in the WAL records, or
+ * they will be invisible to tools that that need to know which pages are
+ * modified.
*/
Buffer
XLogReadBufferExtended(RelFileNode rnode, ForkNumber forknum,
[parent: bdb9e3dc1da9]