Skip to content

Commit f86f46d

Browse files
committed
Fix comment
The last argument of smgrextend() was renamed from isTemp to skipFsync in debcec7, but the comments at two call sites were not updated.
1 parent 52ad1e6 commit f86f46d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/backend/access/heap/rewriteheap.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,10 +703,9 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
703703
true);
704704

705705
/*
706-
* Now write the page. We say isTemp = true even if it's not a
707-
* temp table, because there's no need for smgr to schedule an
708-
* fsync for this write; we'll do it ourselves in
709-
* end_heap_rewrite.
706+
* Now write the page. We say skipFsync = true because there's no
707+
* need for smgr to schedule an fsync for this write; we'll do it
708+
* ourselves in end_heap_rewrite.
710709
*/
711710
RelationOpenSmgr(state->rs_new_rel);
712711

src/backend/catalog/storage.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,9 @@ RelationCopyStorage(SMgrRelation src, SMgrRelation dst,
390390
PageSetChecksumInplace(page, blkno);
391391

392392
/*
393-
* Now write the page. We say isTemp = true even if it's not a temp
394-
* rel, because there's no need for smgr to schedule an fsync for this
395-
* write; we'll do it ourselves below.
393+
* Now write the page. We say skipFsync = true because there's no
394+
* need for smgr to schedule an fsync for this write; we'll do it
395+
* ourselves below.
396396
*/
397397
smgrextend(dst, forkNum, blkno, buf.data, true);
398398
}

0 commit comments

Comments
 (0)