From: Tomas Vondra Date: Tue, 1 Mar 2016 02:48:06 +0000 (+0100) Subject: get rid of GTMGetFirstClientIdentifier (unused) X-Git-Tag: XL9_5_R1BETA2~30 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=bae90693db62329d4e9248502837093ae6a8d7be;p=postgres-xl.git get rid of GTMGetFirstClientIdentifier (unused) function not used or even defined in a header file --- 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 @@ -423,34 +423,6 @@ GTMGetLastClientIdentifier(void) return last_client_id; } -/* - * 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.