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

Commitfce52d2

Browse files
committed
Always request global snalshot to correctly implement read-committed
1 parent0cb3dee commitfce52d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎contrib/multimaster/multimaster.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ static TransactionId DtmNextXid;
115115
staticSnapshotDataDtmSnapshot= {HeapTupleSatisfiesMVCC };
116116
staticboolDtmHasGlobalSnapshot;
117117
staticintDtmLocalXidReserve;
118-
staticintDtmCurcid;
119118
staticSnapshotDtmLastSnapshot;
120119
staticTransactionManagerDtmTM= {
121120
DtmGetTransactionStatus,
@@ -617,11 +616,9 @@ static Snapshot DtmGetSnapshot(Snapshot snapshot)
617616
{
618617
if (TransactionIdIsValid(DtmNextXid)&&snapshot!=&CatalogSnapshotData)
619618
{
620-
intcid=GetCurrentCommandId(false);
621-
if (!DtmHasGlobalSnapshot&& (snapshot!=DtmLastSnapshot||DtmCurcid!=cid) {
619+
if (!DtmHasGlobalSnapshot) {
622620
DtmGlobalGetSnapshot(DtmNextXid,&DtmSnapshot,&dtm->minXid);
623621
}
624-
DtmCurcid=cid;
625622
DtmLastSnapshot=snapshot;
626623
DtmMergeWithGlobalSnapshot(snapshot);
627624
if (!IsolationUsesXactSnapshot())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp