Skip to content

Commit 1e2bfb5

Browse files
committed
Cleanup for procarray.c.
1 parent 404c004 commit 1e2bfb5

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy