Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit6c1af54

Browse files
committed
Fix typo in GetRunningTransactionData()
e85662d made GetRunningTransactionData() calculate the oldest runningtransaction id within the current database. However, because of the typo,the new code uses oldestRunningXid instead of oldestDatabaseRunningXidin comparison before updating oldestDatabaseRunningXid. This commit fixesthat issue.Reported-by: Noah MischDiscussion:https://postgr.es/m/20240630231816.bf.nmisch%40google.comBackpatch-through: 17
1 parent4331a11 commit6c1af54

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)

[8]ページ先頭

©2009-2025 Movatter.jp