From: Tomas Vondra Date: Tue, 23 Aug 2016 08:26:36 +0000 (+0200) Subject: initialize saved_gxid and saved_global_gxid in GTM_RestoreTxnInfo X-Git-Tag: XL9_5_R1_4~45 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=7c624233b7c554e35598e4b63e225ffd335940f1;p=postgres-xl.git initialize saved_gxid and saved_global_gxid in GTM_RestoreTxnInfo Without the control file (ctlf==NULL), the two gxid variables were not initialized. Set them both to InvalidGlobalTransactionId. --- diff --git a/src/gtm/main/main.c b/src/gtm/main/main.c index ea8241536f..c51dc9e36b 100644 --- a/src/gtm/main/main.c +++ b/src/gtm/main/main.c @@ -2320,8 +2320,8 @@ void GTM_RestoreTxnInfo(FILE *ctlf, GlobalTransactionId next_gxid, struct GTM_RestoreContext *context, bool force_xid) { - GlobalTransactionId saved_gxid; - GlobalTransactionId saved_global_xmin; + GlobalTransactionId saved_gxid = InvalidGlobalTransactionId; + GlobalTransactionId saved_global_xmin = InvalidGlobalTransactionId; if (ctlf) {