From: Tomas Vondra Date: Tue, 1 Mar 2016 02:23:41 +0000 (+0100) Subject: eliminate variables that are only set (but not used) X-Git-Tag: XL9_5_R1BETA2~33 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b829ff70da73e2ed770ce0cf2e4358b5294f0830;p=postgres-xl.git eliminate variables that are only set (but not used) --- diff --git a/src/gtm/common/mcxt.c b/src/gtm/common/mcxt.c index aad4bcd8e6..6461895893 100644 --- a/src/gtm/common/mcxt.c +++ b/src/gtm/common/mcxt.c @@ -66,8 +66,6 @@ MemoryContext TopMostMemoryContext; void MemoryContextInit(void) { - void *thrinfo; - AssertState(TopMemoryContext == NULL); /* @@ -92,7 +90,6 @@ MemoryContextInit(void) * Not having any other place to point CurrentMemoryContext, make it point * to TopMemoryContext. Caller should change this soon! */ - thrinfo = GetMyThreadInfo; CurrentMemoryContext = TopMemoryContext; /* diff --git a/src/gtm/main/gtm_txn.c b/src/gtm/main/gtm_txn.c index 6e5973dc3f..e43b98bc93 100644 --- a/src/gtm/main/gtm_txn.c +++ b/src/gtm/main/gtm_txn.c @@ -888,13 +888,10 @@ GTM_BkupBeginTransactionMulti(GTM_IsolationLevel *isolevel, int txn_count) { GTM_TransactionHandle txn[GTM_MAX_GLOBAL_TRANSACTIONS];; - GTM_TransactionInfo *gtm_txninfo; MemoryContext oldContext; int kk; int count; - gtm_txninfo = NULL; - oldContext = MemoryContextSwitchTo(TopMostMemoryContext); count = GTM_BeginTransactionMulti(isolevel, readonly, @@ -2039,7 +2036,6 @@ ProcessGetGIDDataTransactionCommand(Port *myport, StringInfo message) if (GetMyThreadInfo->thr_conn->standby) { - int _rc; GTM_Conn *oldconn = GetMyThreadInfo->thr_conn->standby; int count = 0; GTM_Timestamp timestamp; @@ -2059,7 +2055,7 @@ retry: * instead of writing a routine specific to MSG_TXN_GET_GID_DATA * message */ - _rc = bkup_begin_transaction_gxid(GetMyThreadInfo->thr_conn->standby, + bkup_begin_transaction_gxid(GetMyThreadInfo->thr_conn->standby, gxid, txn_isolation_level, false,