From 67af68f5c763942687d08440d20e91efe17c4083 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 23 Mar 2007 03:16:39 +0000 Subject: [PATCH] Cleanup for procarray.c. --- src/backend/storage/ipc/procarray.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index 2d1493bb09..cddbcc2485 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -590,6 +590,11 @@ GetSnapshotData(Snapshot snapshot, bool serializable) xmax = ReadNewTransactionId(); + /* + * Spin over procArray checking xid, xmin, and subxids. The goal is + * to gather all active xids, find the lowest xmin, and try to record + * subxids. + */ for (index = 0; index < arrayP->numProcs; index++) { PGPROC *proc = arrayP->procs[index]; @@ -614,8 +619,7 @@ GetSnapshotData(Snapshot snapshot, bool serializable) if (TransactionIdPrecedes(xid, xmin)) xmin = xid; - snapshot->xip[count] = xid; - count++; + snapshot->xip[count++] = xid; /* Update globalxmin to be the smallest valid xmin */ xid = proc->xmin; -- 2.39.5