comment for TwoPhaseGetOldestXidInCommit

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Amit Kapila <amit.kapila16@gmail.com>
Date: 2025-10-07T16:25:45Z
Lists: pgsql-hackers
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



Commits

  1. Fix typo in function header comment.