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

Commitce2e104

Browse files
committed
fixup for previous commit
1 parentb9e89b5 commitce2e104

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎src/backend/access/transam/global_snapshot.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,16 @@ DtmAdjustOldestXid()
367367
}
368368

369369
staticvoid
370-
DtmInitGlobalXmin(TransactionIdxid)
370+
DtmInitGlobalXmin(TransactionIdxmin)
371371
{
372372
TransactionIdcurrent_xmin;
373373

374+
Assert(TransactionIdIsValid(xmin));
375+
374376
/* Better change to CAS */
375377
current_xmin=ProcArrayGetGlobalSnapshotXmin();
376378
if (!TransactionIdIsValid(current_xmin))
377-
ProcArraySetGlobalSnapshotXmin(xid);
379+
ProcArraySetGlobalSnapshotXmin(xmin);
378380
}
379381

380382

@@ -515,7 +517,7 @@ DtmLocalExtend(GlobalTransactionId gtid)
515517
SpinLockRelease(&local->lock);
516518
}
517519
x->is_global= true;
518-
DtmInitGlobalXmin(x->xid);
520+
DtmInitGlobalXmin(TransactionXmin);
519521
returnx->snapshot;
520522
}
521523

@@ -549,7 +551,7 @@ DtmLocalAccess(DtmCurrentTrans * x, GlobalTransactionId gtid, cid_t global_cid)
549551
{
550552
elog(ERROR,"Too old snapshot: requested %ld, current %ld",global_cid,local_cid);
551553
}
552-
DtmInitGlobalXmin(x->xid);
554+
DtmInitGlobalXmin(TransactionXmin);
553555
returnglobal_cid;
554556
}
555557

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp