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 | |
parent | e74232fe49e2d1384302a15bea5b176aa29841fa (diff) | |
download | memcached-18a3092ddec1a371f3162b00f405682a414a652f.tar.gz |
rm_lru_maintainer_initialized
-rw-r--r-- | items.c | 6 | ||||
-rw-r--r-- | items.h | 1 | ||||
-rw-r--r-- | memcached.c | 3 |
3 files changed, 0 insertions, 10 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; @@ -79,7 +79,6 @@ extern pthread_mutex_t lru_locks[POWER_LARGEST]; int start_lru_maintainer_thread(void *arg); int stop_lru_maintainer_thread(void); -int init_lru_maintainer(void); void lru_maintainer_pause(void); void lru_maintainer_resume(void); diff --git a/memcached.c b/memcached.c index 0da9803..ed253eb 100644 --- a/memcached.c +++ b/memcached.c @@ -4907,9 +4907,6 @@ int main (int argc, char **argv) { } #endif - /* Run regardless of initializing it later */ - init_lru_maintainer(); - /* set stderr non-buffering (for running under, say, daemontools) */ setbuf(stderr, NULL); |