Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6c1af54

Browse filesBrowse 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
Copy full SHA for 6c1af54

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/backend/storage/ipc/procarray.c

Copy file name to clipboardExpand all lines: src/backend/storage/ipc/procarray.c
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.