summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2016-03-01 02:23:41 +0000
committerPavan Deolasee2016-10-18 10:00:50 +0000
commitf3046b0fbc3e91f4fd6a2aad8f11d9bc13564404 (patch)
tree642a81ea5b052a201bc25680408db1e7c57a8c55
parentcc8cc86bb42c2e34f5dddbf712ba1ae0400c034c (diff)
eliminate variables that are only set (but not used)
-rw-r--r--src/gtm/common/mcxt.c3
-rw-r--r--src/gtm/main/gtm_txn.c6
2 files changed, 1 insertions, 8 deletions
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,