Обсуждение: comment for TwoPhaseGetOldestXidInCommit

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

comment for TwoPhaseGetOldestXidInCommit

От
Robert Haas
Дата:
Amit and all,

I noticed today that TwoPhaseGetOldestXidInCommit has a header comment
where the same function is called TwoPhaseGetXidByLockingProc:

/*
 * TwoPhaseGetXidByLockingProc
 *              Return the oldest transaction ID from prepared
transactions that are
 *              currently in the commit critical section.
 *
 * This function only considers transactions in the currently connected
 * database. If no matching transactions are found, it returns
 * InvalidTransactionId.
 */
TransactionId
TwoPhaseGetOldestXidInCommit(void)

This inconsistency should be corrected.

Thanks,

-- 
Robert Haas
EDB: http://www.enterprisedb.com



Re: comment for TwoPhaseGetOldestXidInCommit

От
Amit Kapila
Дата:
On Tue, Oct 7, 2025 at 9:56 PM Robert Haas <robertmhaas@gmail.com> wrote:
>
> I noticed today that TwoPhaseGetOldestXidInCommit has a header comment
> where the same function is called TwoPhaseGetXidByLockingProc:
>
...
>
> This inconsistency should be corrected.
>

Right, I'll take care of it. Thanks for the report.

--
With Regards,
Amit Kapila.