fix misspelling of "tranche" in dsa.h

Started by Nathan Bossart5 months ago2 messages
#1Nathan Bossart
nathandbossart@gmail.com
1 attachment(s)

Attached is a patch to fix $subject, which appears to be the result of
commit bb952c8c8b.

--
nathan

Attachments:

v1-0001-Fix-misspelling-of-tranche-in-dsa.h.patchtext/plain; charset=us-asciiDownload
From 1df952b77d4875466801b93477164cddd00f9eec Mon Sep 17 00:00:00 2001
From: Nathan Bossart <nathan@postgresql.org>
Date: Mon, 18 Aug 2025 16:04:06 -0500
Subject: [PATCH v1 1/1] Fix misspelling of "tranche" in dsa.h.

Oversight in commit bb952c8c8b.
---
 src/include/utils/dsa.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/include/utils/dsa.h b/src/include/utils/dsa.h
index 0a6067be628..f2104dacbfc 100644
--- a/src/include/utils/dsa.h
+++ b/src/include/utils/dsa.h
@@ -114,13 +114,13 @@ typedef pg_atomic_uint64 dsa_pointer_atomic;
 	dsa_allocate_extended(area, size, DSA_ALLOC_ZERO)
 
 /* Create dsa_area with default segment sizes */
-#define dsa_create(tranch_id) \
-	dsa_create_ext(tranch_id, DSA_DEFAULT_INIT_SEGMENT_SIZE, \
+#define dsa_create(tranche_id) \
+	dsa_create_ext(tranche_id, DSA_DEFAULT_INIT_SEGMENT_SIZE, \
 				   DSA_MAX_SEGMENT_SIZE)
 
 /* Create dsa_area with default segment sizes in an existing share memory space */
-#define dsa_create_in_place(place, size, tranch_id, segment) \
-	dsa_create_in_place_ext(place, size, tranch_id, segment, \
+#define dsa_create_in_place(place, size, tranche_id, segment) \
+	dsa_create_in_place_ext(place, size, tranche_id, segment, \
 							DSA_DEFAULT_INIT_SEGMENT_SIZE, \
 							DSA_MAX_SEGMENT_SIZE)
 
-- 
2.39.5 (Apple Git-154)

#2Nathan Bossart
nathandbossart@gmail.com
In reply to: Nathan Bossart (#1)
Re: fix misspelling of "tranche" in dsa.h

On Mon, Aug 18, 2025 at 04:10:38PM -0500, Nathan Bossart wrote:

Attached is a patch to fix $subject, which appears to be the result of
commit bb952c8c8b.

Committed.

--
nathan