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

Commitdd45d3a

Browse files
committed
Fix some long-obsolete references to XLogOpenRelation.
These were missed in commita213f1e,which removed that function.
1 parent85df5db commitdd45d3a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

‎src/backend/access/transam/README

Lines changed: 2 additions & 4 deletions
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

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp