Fix typos in ExecChooseHashTableSize() - Mailing list pgsql-hackers

From Tender Wang
Subject Fix typos in ExecChooseHashTableSize()
Date
Msg-id CAHewXNnzFjAjYLTkP78HE2PQ17MjBqFdQQg+0X6Wo7YMUb68xA@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi,

While stepping into the ExecChooseHashTableSize(),
I found two typos in the comments
One is as follows:
/* Check that buckets wont't overflow MaxAllocSize */
if (nbuckets > (MaxAllocSize / sizeof(HashJoinTuple) / 2))
     break;

The other  one is :

/*
* Check that space_allowed won't overlow SIZE_MAX.
*
* We don't use hash_table_bytes here, because it does not include the
* skew buckets. And we want to limit the overall memory limit.
*/
if ((*space_allowed) > (SIZE_MAX / 2))
    break;

In the first comment,  "wont't" should be "won't".
In the second comment,  "overlow" should be "overflow".
The attached patch fixes these typos.
--
Thanks,
Tender Wang
Attachment

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Running a single test
Next
From: Amit Kapila
Date:
Subject: Re: Issue with logical replication slot during switchover