diff options
author | Tomas Vondra | 2016-03-01 02:48:06 +0000 |
---|---|---|
committer | Pavan Deolasee | 2016-10-18 10:00:50 +0000 |
commit | 269065c862bd3fdda20136fb7be2a1682d5ee105 (patch) | |
tree | 9ef7c27dc3b15c8ace35d5bf57da214e5c84164d | |
parent | 0986536e7e497291a932d4d23c15f900adab1142 (diff) |
get rid of GTMGetFirstClientIdentifier (unused)
function not used or even defined in a header file
-rw-r--r-- | src/gtm/main/gtm_txn.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/gtm/main/gtm_txn.c b/src/gtm/main/gtm_txn.c index ed971351ef..999c06e05d 100644 --- a/src/gtm/main/gtm_txn.c +++ b/src/gtm/main/gtm_txn.c @@ -424,34 +424,6 @@ GTMGetLastClientIdentifier(void) } /* - * Get the oldest client identifier issued to the currently open transactions. - */ -uint32 -GTMGetFirstClientIdentifier(void) -{ - gtm_ListCell *cell; - uint32 first_client_id = UINT32_MAX; - - /* - * Scan the global list of open transactions - */ - GTM_RWLockAcquire(>MTransactions.gt_TransArrayLock, GTM_LOCKMODE_WRITE); - - cell = gtm_list_head(GTMTransactions.gt_open_transactions); - while (cell != NULL) - { - GTM_TransactionInfo *gtm_txninfo = gtm_lfirst(cell); - - if (GTM_CLIENT_ID_LT(gtm_txninfo->gti_client_id, first_client_id)) - first_client_id = gtm_txninfo->gti_client_id; - cell = gtm_lnext(cell); - } - - GTM_RWLockRelease(>MTransactions.gt_TransArrayLock); - return first_client_id; -} - -/* * GlobalTransactionIdDidCommit * True iff transaction associated with the identifier did commit. * |