Content-Length: 295630 | pFad | http://github.com/postgrespro/postgres_cluster/commit/1e2bfb58110cf6d125b4dda3dc670444ff1b9d2c

4D Cleanup for procarray.c. · postgrespro/postgres_cluster@1e2bfb5 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/1e2bfb58110cf6d125b4dda3dc670444ff1b9d2c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy