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

Commit1e2bfb5

Browse files
committed
Cleanup for procarray.c.
1 parent404c004 commit1e2bfb5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
*
2525
* IDENTIFICATION
26-
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.21 2007/01/16 13:28:56 alvherre Exp $
26+
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.22 2007/03/23 03:16:39 momjian Exp $
2727
*
2828
*-------------------------------------------------------------------------
2929
*/
@@ -590,6 +590,11 @@ GetSnapshotData(Snapshot snapshot, bool serializable)
590590

591591
xmax=ReadNewTransactionId();
592592

593+
/*
594+
* Spin over procArray checking xid, xmin, and subxids. The goal is
595+
* to gather all active xids, find the lowest xmin, and try to record
596+
* subxids.
597+
*/
593598
for (index=0;index<arrayP->numProcs;index++)
594599
{
595600
PGPROC*proc=arrayP->procs[index];
@@ -614,8 +619,7 @@ GetSnapshotData(Snapshot snapshot, bool serializable)
614619

615620
if (TransactionIdPrecedes(xid,xmin))
616621
xmin=xid;
617-
snapshot->xip[count]=xid;
618-
count++;
622+
snapshot->xip[count++]=xid;
619623

620624
/* Update globalxmin to be the smallest valid xmin */
621625
xid=proc->xmin;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp