File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -481,8 +481,7 @@ rdata array, even if some of the rdata items point into the buffer. This is
481481because you don't want XLogInsert to log the whole page contents. The
482482standard 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);
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments