Corrected logic in XidInMVCCSnapshot()
authorSimon Riggs <simon@2ndQuadrant.com>
Fri, 25 Sep 2009 18:23:14 +0000 (19:23 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Fri, 25 Sep 2009 18:23:14 +0000 (19:23 +0100)
src/backend/utils/time/tqual.c

index faeed7c0a36f28a91123810361d6cf268f7d18a4..5bf79293fa828a8911c9c2bac8c05aaf8c32ec0f 100644 (file)
@@ -1259,7 +1259,7 @@ XidInMVCCSnapshot(TransactionId xid, Snapshot snapshot)
        /*
         * Data lives in different places depending upon when snapshot taken
         */
-       if (snapshot->takenDuringRecovery)
+       if (!snapshot->takenDuringRecovery)
        {
                /*
                 * If the snapshot contains full subxact data, the fastest way to check