From: Simon Riggs Date: Mon, 5 Oct 2009 10:23:05 +0000 (+0100) Subject: Apply remaining minor docs changes from Heikki's patch 0016-Oops-check... X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=9a7d13a11b291fe4c8c3748e0eb822aff750cb56;p=users%2Fsimon%2Fpostgres.git Apply remaining minor docs changes from Heikki's patch 0016-Oops-check... --- diff --git a/src/backend/utils/time/tqual.c b/src/backend/utils/time/tqual.c index 5bf79293fa..05139ee8f5 100644 --- a/src/backend/utils/time/tqual.c +++ b/src/backend/utils/time/tqual.c @@ -1257,7 +1257,8 @@ XidInMVCCSnapshot(TransactionId xid, Snapshot snapshot) return true; /* - * Data lives in different places depending upon when snapshot taken + * Snapshot information is stored slightly differently in snapshots + * taken during recovery */ if (!snapshot->takenDuringRecovery) { @@ -1276,7 +1277,7 @@ XidInMVCCSnapshot(TransactionId xid, Snapshot snapshot) for (j = 0; j < snapshot->subxcnt; j++) { if (TransactionIdEquals(xid, snapshot->subxip[j])) - return true; + return true; } /* not there, fall through to search xip[] */ @@ -1306,7 +1307,7 @@ XidInMVCCSnapshot(TransactionId xid, Snapshot snapshot) /* * - * In recovery we store all xids in the subxact array because this + * In recovery we store all xids in the subxact array because it * is by far the bigger array and we mostly don't know which xids * are top-level and which are subxacts. The xip array is empty. * @@ -1328,12 +1329,12 @@ XidInMVCCSnapshot(TransactionId xid, Snapshot snapshot) /* * We now have either a top-level xid higher than xmin or an * indeterminate xid. We don't know whether it's top level or subxact - * but it doesn't matter. If its present, the xid is visible. + * but it doesn't matter. If it's present, the xid is visible. */ for (j = 0; j < snapshot->subxcnt; j++) { if (TransactionIdEquals(xid, snapshot->subxip[j])) - return true; + return true; } }