From: Pavan Deolasee Date: Thu, 31 Dec 2015 11:11:25 +0000 (+0530) Subject: Set XactTopTransactionId also on receiving XID from a datanode X-Git-Tag: XL9_5_R1BETA1~118 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=79f198da227bb7210de9ec7b559adf7edc980311;p=postgres-xl.git Set XactTopTransactionId also on receiving XID from a datanode --- diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index cbf79e6db2..4e0d6daa41 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -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