]> granicus.if.org Git - postgresql/commitdiff
Fix bogus comments
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 12 May 2016 19:02:49 +0000 (16:02 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 12 May 2016 19:07:07 +0000 (16:07 -0300)
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
src/backend/access/transam/xlogutils.c

index 5e4ee30071f2c4eb7f24b0851869ca1552729aa2..2eb04d661dc2a767915eef22a5238124ecc28807 100644 (file)
@@ -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);
 
index cb4563ed731554e12122755fda0d84b730f957f5..51a8e8ddb2ec1fb3d42a4497ea80df3b32ba4bd8 100644 (file)
@@ -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,