Set XactTopTransactionId also on receiving XID from a datanode
authorPavan Deolasee <[email protected]>
Thu, 31 Dec 2015 11:11:25 +0000 (16:41 +0530)
committerPavan Deolasee <[email protected]>
Thu, 31 Dec 2015 11:11:25 +0000 (16:41 +0530)
src/backend/access/transam/xact.c

index cbf79e6db2881e2adfe59c91af35ba6ae61d20c1..4e0d6daa41a8d9de9dd0b471dac7e0389047074e 100644 (file)
@@ -6745,7 +6745,7 @@ SetTopTransactionId(GlobalTransactionId xid)
        TransactionState s = CurrentTransactionState;
        Assert(!GlobalTransactionIdIsValid(s->transactionId) ||
                        GlobalTransactionIdEquals(s->transactionId, xid));
-       s->transactionId = xid;
+       XactTopTransactionId = s->transactionId = xid;
        elog(DEBUG2, "Assigning XID received from the remote node - %d", xid);
 }
 #endif