public inbox for [email protected]
help / color / mirror / Atom feedFrom: Heikki Linnakangas <[email protected]>
Subject: [PATCH v9 18/21] Cosmetic fixes
Date: Wed, 27 Mar 2024 23:41:15 +0200
---
src/backend/access/heap/heapam.c | 14 +++++++-------
src/backend/access/heap/pruneheap.c | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c
index aefc0be0dd3..ed4045925bd 100644
--- a/src/backend/access/heap/heapam.c
+++ b/src/backend/access/heap/heapam.c
@@ -6762,13 +6762,13 @@ heap_execute_freeze_tuple(HeapTupleHeader tuple, HeapTupleFreeze *frz)
}
/*
-* Perform xmin/xmax XID status sanity checks before actually executing freeze
-* plans.
-*
-* heap_prepare_freeze_tuple doesn't perform these checks directly because
-* pg_xact lookups are relatively expensive. They shouldn't be repeated
-* by successive VACUUMs that each decide against freezing the same page.
-*/
+ * Perform xmin/xmax XID status sanity checks before actually executing freeze
+ * plans.
+ *
+ * heap_prepare_freeze_tuple doesn't perform these checks directly because
+ * pg_xact lookups are relatively expensive. They shouldn't be repeated
+ * by successive VACUUMs that each decide against freezing the same page.
+ */
void
heap_pre_freeze_checks(Buffer buffer,
HeapTupleFreeze *tuples, int ntuples)
diff --git a/src/backend/access/heap/pruneheap.c b/src/backend/access/heap/pruneheap.c
index fd8dc0bc85b..337331901ab 100644
--- a/src/backend/access/heap/pruneheap.c
+++ b/src/backend/access/heap/pruneheap.c
@@ -545,7 +545,7 @@ heap_page_prune_and_freeze(Relation relation, Buffer buffer,
* will be no newly frozen tuples.
*/
presult->set_all_frozen = false;
- prstate.nfrozen = 0; /* avoid miscounts in instrumenation */
+ prstate.nfrozen = 0; /* avoid miscounts in instrumentation */
}
/* Any error while applying the changes is critical */
--
2.40.1
--caj67xgx3lukmr5f
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
filename="v9-0019-Almost-cosmetic-fixes.patch"
view thread (7+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH v9 18/21] Cosmetic fixes
In-Reply-To: <no-message-id-1859553@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox