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

Commit057ea34

Browse files
committed
Xmin calculations should consider only top transaction IDs, and
therefore starting with GetCurrentTransactionId is wrong. Fixesmiscomputation of RecentGlobalXmin leading to bizarre behaviorreported by Gavin Sherry.
1 parent2820f05 commit057ea34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/storage/ipc/sinval.c,v 1.67 2004/08/01 17:32:16 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/ipc/sinval.c,v 1.68 2004/08/15 17:03:36 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -673,7 +673,7 @@ GetOldestXmin(bool allDbs)
673673
TransactionIdresult;
674674
intindex;
675675

676-
result=GetCurrentTransactionId();
676+
result=GetTopTransactionId();
677677

678678
LWLockAcquire(SInvalLock,LW_SHARED);
679679

@@ -763,7 +763,7 @@ GetSnapshotData(Snapshot snapshot, bool serializable)
763763
errmsg("out of memory")));
764764
}
765765

766-
globalxmin=xmin=GetCurrentTransactionId();
766+
globalxmin=xmin=GetTopTransactionId();
767767

768768
/*
769769
* If we are going to set MyProc->xmin then we'd better get exclusive

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp