Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dd45d3a

Browse files
committed
Fix some long-obsolete references to XLogOpenRelation.
These were missed in commit a213f1e, which removed that function.
1 parent 85df5db commit dd45d3a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/backend/access/transam/README

+2-4
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,7 @@ rdata array, even if some of the rdata items point into the buffer. This is
481481
because you don't want XLogInsert to log the whole page contents. The
482482
standard replay-routine pattern for this case is
483483

484-
reln = XLogOpenRelation(rnode);
485-
buffer = XLogReadBuffer(reln, blkno, true);
484+
buffer = XLogReadBuffer(rnode, blkno, true);
486485
Assert(BufferIsValid(buffer));
487486
page = (Page) BufferGetPage(buffer);
488487

@@ -501,8 +500,7 @@ The standard replay-routine pattern for this case is
501500
if (record->xl_info & XLR_BKP_BLOCK_n)
502501
<< do nothing, page was rewritten from logged copy >>;
503502

504-
reln = XLogOpenRelation(rnode);
505-
buffer = XLogReadBuffer(reln, blkno, false);
503+
buffer = XLogReadBuffer(rnode, blkno, false);
506504
if (!BufferIsValid(buffer))
507505
<< do nothing, page has been deleted >>;
508506
page = (Page) BufferGetPage(buffer);

src/backend/catalog/storage.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ smgr_redo(XLogRecPtr lsn, XLogRecord *record)
505505
/*
506506
* Forcibly create relation if it doesn't exist (which suggests that
507507
* it was dropped somewhere later in the WAL sequence). As in
508-
* XLogOpenRelation, we prefer to recreate the rel and replay the log
508+
* XLogReadBuffer, we prefer to recreate the rel and replay the log
509509
* as best we can until the drop is seen.
510510
*/
511511
smgrcreate(reln, MAIN_FORKNUM, true);

0 commit comments

Comments
 (0)