Fix comment
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 22 Oct 2019 07:58:20 +0000 (09:58 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 22 Oct 2019 07:58:20 +0000 (09:58 +0200)
The last argument of smgrextend() was renamed from isTemp to skipFsync
in debcec7dc31a992703911a9953e299c8d730c778, but the comments at two
call sites were not updated.

src/backend/access/heap/rewriteheap.c
src/backend/catalog/storage.c

index 306e74ea103c1dd8a8568cf4416c0e35a41f06de..d41dbcf5f729306e4322a5bb7227298d6eb441fc 100644 (file)
@@ -703,10 +703,9 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
                            true);
 
            /*
-            * Now write the page. We say isTemp = true even if it's not a
-            * temp table, because there's no need for smgr to schedule an
-            * fsync for this write; we'll do it ourselves in
-            * end_heap_rewrite.
+            * Now write the page. We say skipFsync = true because there's no
+            * need for smgr to schedule an fsync for this write; we'll do it
+            * ourselves in end_heap_rewrite.
             */
            RelationOpenSmgr(state->rs_new_rel);
 
index b8c9b6f9c684124b163f7f1f7cd57557c49a9399..625af8d49a1dbf24a77fee02d737642ae6b6afeb 100644 (file)
@@ -390,9 +390,9 @@ RelationCopyStorage(SMgrRelation src, SMgrRelation dst,
        PageSetChecksumInplace(page, blkno);
 
        /*
-        * Now write the page.  We say isTemp = true even if it's not a temp
-        * rel, because there's no need for smgr to schedule an fsync for this
-        * write; we'll do it ourselves below.
+        * Now write the page.  We say skipFsync = true because there's no
+        * need for smgr to schedule an fsync for this write; we'll do it
+        * ourselves below.
         */
        smgrextend(dst, forkNum, blkno, buf.data, true);
    }