diff options
author | Bruce Momjian <bruce@momjian.us> | 2007-03-23 03:16:39 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2007-03-23 03:16:39 +0000 |
commit | 1e2bfb58110cf6d125b4dda3dc670444ff1b9d2c (patch) | |
tree | 35bbbad06e15b947a92bc685a58c0e5e9e4855e9 /src | |
parent | 404c00434cb00b1dced2da175ff337388cde50e0 (diff) | |
download | postgresql-1e2bfb58110cf6d125b4dda3dc670444ff1b9d2c.tar.gz postgresql-1e2bfb58110cf6d125b4dda3dc670444ff1b9d2c.zip |
Cleanup for procarray.c.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/ipc/procarray.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index 19e5efa683a..d2d39770c5b 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -23,7 +23,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.21 2007/01/16 13:28:56 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.22 2007/03/23 03:16:39 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -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; |