git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 52ad1e6)
Fix comment
2019年10月22日 07:58:20 +0000 (09:58 +0200)
2019年10月22日 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.


diff --git a/src/backend/access/heap/rewriteheap.c b/src/backend/access/heap/rewriteheap.c
index 306e74ea103c1dd8a8568cf4416c0e35a41f06de..d41dbcf5f729306e4322a5bb7227298d6eb441fc 100644 (file)
--- 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 b8c9b6f9c684124b163f7f1f7cd57557c49a9399..625af8d49a1dbf24a77fee02d737642ae6b6afeb 100644 (file)
--- 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);
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /