Content-Length: 259962 | pFad | http://github.com/postgrespro/postgres/commit/6c1af5482e6943a5f29b7f4ca773c720ec8202b0

27 Fix typo in GetRunningTransactionData() · postgrespro/postgres@6c1af54 · GitHub
Skip to content

Commit 6c1af54

Browse files
committed
Fix typo in GetRunningTransactionData()
e85662d 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
1 parent 4331a11 commit 6c1af54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/storage/ipc/procarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2779,7 +2779,7 @@ GetRunningTransactionData(void)
27792779
* Also, update the oldest running xid within the current database.
27802780
*/
27812781
if (proc->databaseId == MyDatabaseId &&
2782-
TransactionIdPrecedes(xid, oldestRunningXid))
2782+
TransactionIdPrecedes(xid, oldestDatabaseRunningXid))
27832783
oldestDatabaseRunningXid = xid;
27842784

27852785
if (ProcGlobal->subxidStates[index].overflowed)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/6c1af5482e6943a5f29b7f4ca773c720ec8202b0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy