Fix typo in GetRunningTransactionData()
authorAlexander Korotkov
Wed, 3 Jul 2024 23:05:27 +0000 (02:05 +0300)
committerAlexander Korotkov
Wed, 3 Jul 2024 23:08:01 +0000 (02:08 +0300)
commit619f76cce11dc51458eb4ea81b0e48d15d0b2d07
tree271e1d78d3653d48b71c3829d00f61c37d205599
parent95219c020c3c8c59079f264386141065865a810e
Fix typo in GetRunningTransactionData()

e85662df44 made GetRunningTransactionData() calculate the oldest running
transaction id within the current database.  However, because of the typo,
the new code uses oldestRunningXid instead of oldestDatabaseRunningXid
in comparison before updating oldestDatabaseRunningXid.  This commit fixes
that issue.

Reported-by: Noah Misch
Discussion: https://postgr.es/m/20240630231816.bf.nmisch%40google.com
Backpatch-through: 17
src/backend/storage/ipc/procarray.c