Обсуждение: [PATCH v1] Fixed a spelling error in the comments in gininsert.c

Поиск
Список
Период
Сортировка

[PATCH v1] Fixed a spelling error in the comments in gininsert.c

От
"Xingbin She"
Дата:
Hi hackers,

This patch fixs a typo in gin code comments, detial as follows:

diff --git a/src/backend/access/gin/gininsert.c b/src/backend/access/gin/gininsert.c
index df30dcc..8824607 100644
--- a/src/backend/access/gin/gininsert.c
+++ b/src/backend/access/gin/gininsert.c
@@ -1784,7 +1784,7 @@ _gin_parallel_merge(GinBuildState *state)
                                                                         ++numtuples);
        }

-       /* relase all the memory */
+       /* release all the memory */
        GinBufferFree(buffer);

        tuplesort_end(state->bs_sortstate);
@@ -1972,7 +1972,7 @@ _gin_process_worker_data(GinBuildState *state, Tuplesortstate *worker_sort,
                GinBufferReset(buffer);
        }

-       /* relase all the memory */
+       /* release all the memory */
        GinBufferFree(buffer);

--
Best regards,
Xingbin SHE
Email: xingbin.she@qq.com


Вложения

Re: [PATCH v1] Fixed a spelling error in the comments in gininsert.c

От
Michael Paquier
Дата:
On Fri, Dec 19, 2025 at 10:47:22AM +0800, Xingbin She wrote:
> This patch fixs a typo in gin code comments, detial as follows:

Yep, will fix.  Thanks for the report!
--
Michael

Вложения

Re: [PATCH v1] Fixed a spelling error in the comments in gininsert.c

От
Tender Wang
Дата:
Hi Michael,

Michael Paquier <michael@paquier.xyz> 于2025年12月19日周五 10:53写道:
On Fri, Dec 19, 2025 at 10:47:22AM +0800, Xingbin She wrote:
> This patch fixs a typo in gin code comments, detial as follows:

Yep, will fix.  Thanks for the report!
--
Michael

I just found another typo in gininsert.c(maybe on a new thread)
Comments for _gin_build_tuple():

"
 * For by-reference data types, we store the actual data. For by-val types
 * we simply copy the whole Datum, so that we don't have to care about stuff
 * like endianess etc.
"

"endianess" should be "endianness". 

--
Thanks,
Tender Wang

Re: [PATCH v1] Fixed a spelling error in the comments in gininsert.c

От
Michael Paquier
Дата:
On Fri, Dec 19, 2025 at 01:55:14PM +0800, Tender Wang wrote:
> I just found another typo in gininsert.c(maybe on a new thread)
> Comments for _gin_build_tuple():
>
> "
>  * For by-reference data types, we store the actual data. For by-val types
>  * we simply copy the whole Datum, so that we don't have to care about stuff
>  * like endianess etc.
> "
>
> "endianess" should be "endianness".

Indeed.  Thanks.
--
Michael

Вложения

Re: [PATCH v1] Fixed a spelling error in the comments in gininsert.c

От
Chao Li
Дата:

> On Dec 20, 2025, at 08:24, Michael Paquier <michael@paquier.xyz> wrote:
>
> On Fri, Dec 19, 2025 at 01:55:14PM +0800, Tender Wang wrote:
>> I just found another typo in gininsert.c(maybe on a new thread)
>> Comments for _gin_build_tuple():
>>
>> "
>> * For by-reference data types, we store the actual data. For by-val types
>> * we simply copy the whole Datum, so that we don't have to care about stuff
>> * like endianess etc.
>> "
>>
>> "endianess" should be "endianness".
>
> Indeed.  Thanks.
> --
> Michael

I found that earlier, but when I checked with https://www.onelook.com/?w=endianess, it has two matches, so I guessed
thatspelling is acceptable. 

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/