From: Pavan Deolasee Date: Wed, 9 Dec 2015 06:35:29 +0000 (+0530) Subject: Ouch. Forgot to take this half-cooked and incorrect code in the previous commit X-Git-Tag: XL9_5_R1BETA1~134 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=758dd983f819a460f390a566651bb4722f79675c;p=postgres-xl.git Ouch. Forgot to take this half-cooked and incorrect code in the previous commit --- diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index f91bf32324..3209679779 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -4384,21 +4384,6 @@ SetLatestCompletedXid(TransactionId latestCompletedXid) return; } - for (index = 0; index < arrayP->numProcs; index++) - { - int pgprocno = arrayP->pgprocnos[index]; - volatile PGXACT *pgxact = &allPgXact[pgprocno]; - TransactionId pxid = pgxact->xid; - - if (!TransactionIdIsValid(pxid)) - continue; - - if (TransactionIdPrecedesOrEquals(pxid, latestCompletedXid)) - elog(PANIC, "Cannot set latestCompletedXid to %d while another " - "process is running with an older xid %d", - latestCompletedXid, pxid); - } - ShmemVariableCache->latestCompletedXid = latestCompletedXid; LWLockRelease(ProcArrayLock); }