From 11dffd0d93d0bf215634892e094b6424c3c48d18 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Wed, 23 Aug 2017 15:57:37 +0300 Subject: [PATCH] Remove unused variables --- server/core/dcb.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/server/core/dcb.cc b/server/core/dcb.cc index 45d0df2bd..99de15a90 100644 --- a/server/core/dcb.cc +++ b/server/core/dcb.cc @@ -70,11 +70,9 @@ using maxscale::Semaphore; static DCB dcb_initialized; static DCB **all_dcbs; -static SPINLOCK *all_dcbs_lock; static DCB **zombies; static int *nzombies; static int maxzombies = 0; -static SPINLOCK zombiespin = SPINLOCK_INIT; /** Variables for session timeout checks */ bool check_timeouts = false; @@ -92,17 +90,11 @@ void dcb_global_init() if ((zombies = (DCB**)MXS_CALLOC(nthreads, sizeof(DCB*))) == NULL || (all_dcbs = (DCB**)MXS_CALLOC(nthreads, sizeof(DCB*))) == NULL || - (all_dcbs_lock = (SPINLOCK*)MXS_CALLOC(nthreads, sizeof(SPINLOCK))) == NULL || (nzombies = (int*)MXS_CALLOC(nthreads, sizeof(int))) == NULL) { MXS_OOM(); raise(SIGABRT); } - - for (int i = 0; i < nthreads; i++) - { - spinlock_init(&all_dcbs_lock[i]); - } } void dcb_finish()