summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2016-08-23 08:26:36 +0000
committerPavan Deolasee2016-10-18 10:07:44 +0000
commit1a794af80e775760739805ff860aac4a88aa065b (patch)
treefd6c5e6033c07c5ea3224e5d3c2b4fa24a7a40b6
parent9726a0a299975c6f1cd2091c4a26d2cfdd16cc8e (diff)
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.
-rw-r--r--src/gtm/main/main.c4
1 files changed, 2 insertions, 2 deletions
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)
{