aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-10-22 09:58:20 +0200
committerPeter Eisentraut <peter@eisentraut.org>2019-10-22 09:58:20 +0200
commitf86f46d091a6876fbf28e0a4a87ca72b560cf77f (patch)
tree728410731dff4f2d7f3597afa5789222f5c74ac9
parent52ad1e659967896ed153185328ffe806d69abcb6 (diff)
downloadpostgresql-f86f46d091a6876fbf28e0a4a87ca72b560cf77f.tar.gz
postgresql-f86f46d091a6876fbf28e0a4a87ca72b560cf77f.zip
Fix comment
The last argument of smgrextend() was renamed from isTemp to skipFsync in debcec7dc31a992703911a9953e299c8d730c778, but the comments at two call sites were not updated.
-rw-r--r--src/backend/access/heap/rewriteheap.c7
-rw-r--r--src/backend/catalog/storage.c6
2 files changed, 6 insertions, 7 deletions
diff --git a/src/backend/access/heap/rewriteheap.c b/src/backend/access/heap/rewriteheap.c
index 306e74ea103..d41dbcf5f72 100644
--- a/src/backend/access/heap/rewriteheap.c
+++ b/src/backend/access/heap/rewriteheap.c
@@ -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);
diff --git a/src/backend/catalog/storage.c b/src/backend/catalog/storage.c
index b8c9b6f9c68..625af8d49a1 100644
--- a/src/backend/catalog/storage.c
+++ b/src/backend/catalog/storage.c
@@ -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);
}