Re: [PATCH] LockAcquireExtended improvement

Поиск
Список
Период
Сортировка
Искать
От
Jingxian Li
Тема
Re: [PATCH] LockAcquireExtended improvement
Дата
в 09:10:38
Msg-id
tencent_AE64BE730FBC43877B605370E60178C5D407@qq.com
Список
Дерево обсуждения
Re: [PATCH] LockAcquireExtended improvement "Jingxian Li" <aqktjcm@qq.com>
On 2024/5/18 14:38, Will Mortensen wrote:
> On Tue, Mar 26, 2024 at 7:14 PM Will Mortensen  wrote:
>> This comment on ProcSleep() seems to have the values of dontWait
>> backward (double negatives are tricky):
>>
>>     * Result: PROC_WAIT_STATUS_OK if we acquired the lock,
>> PROC_WAIT_STATUS_ERROR
>>     * if not (if dontWait = true, this is a deadlock; if dontWait = false, we
>>     * would have had to wait).
>>
>> Also there's a minor typo in a comment in LockAcquireExtended():
>>
>>     * Check the proclock entry status. If dontWait = true, this is an
>>     * expected case; otherwise, it will open happen if something in the
>>     * ipc communication doesn't work correctly.
>>
>> "open" should be "only".
>
> Here's a patch fixing those typos.

Nice catch! The patch looks good to me.


--
Jingxian Li
В списке pgsql-hackers по дате отправления
От: Andrey M. Borodin
Дата:
От: Tomas Vondra
Дата:
FAQ