diff options
author | xuesenliang <xuesenliang@tencent.com> | 2022-12-27 12:50:22 +0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-03-08 10:41:24 -0800 |
commit | 18a3092ddec1a371f3162b00f405682a414a652f (patch) | |
tree | 7806e5e9595b77c3f2485beab21ce11b5159e399 /items.c | |
parent | e74232fe49e2d1384302a15bea5b176aa29841fa (diff) | |
download | memcached-18a3092ddec1a371f3162b00f405682a414a652f.tar.gz |
rm_lru_maintainer_initialized
Diffstat (limited to 'items.c')
-rw-r--r-- | items.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -63,7 +63,6 @@ static int stats_sizes_buckets = 0; static uint64_t cas_id = 0; static volatile int do_run_lru_maintainer_thread = 0; -static int lru_maintainer_initialized = 0; static pthread_mutex_t lru_maintainer_lock = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t cas_id_lock = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t stats_sizes_lock = PTHREAD_MUTEX_INITIALIZER; @@ -1745,11 +1744,6 @@ void lru_maintainer_resume(void) { pthread_mutex_unlock(&lru_maintainer_lock); } -int init_lru_maintainer(void) { - lru_maintainer_initialized = 1; - return 0; -} - /* Tail linkers and crawler for the LRU crawler. */ void do_item_linktail_q(item *it) { /* item is the new tail */ item **head, **tail; |