diff options
author | Daniel Schemmel <daniel.schemmel@comsys.rwth-aachen.de> | 2019-11-09 19:44:35 +0100 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2019-11-10 23:21:53 -0800 |
commit | 90306c539327f4e36b950c9f1a83e65d2ad44a4b (patch) | |
tree | 6e8e4d2d8a4a612062a5471903967437e3199fa3 /items.c | |
parent | 4575e1f9668a467aa4dc628101509f7f5a5a2efe (diff) | |
download | memcached-90306c539327f4e36b950c9f1a83e65d2ad44a4b.tar.gz |
Remove multiple double-initializations of condition variables and mutexes
- `slabs_rebalance_lock`
- `slab_rebalance_cond`
- `maintenance_lock`
- `lru_crawler_lock`
- `lru_crawler_cond`
- `lru_maintainer_lock`
Diffstat (limited to 'items.c')
-rw-r--r-- | items.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1722,10 +1722,7 @@ void lru_maintainer_resume(void) { } int init_lru_maintainer(void) { - if (lru_maintainer_initialized == 0) { - pthread_mutex_init(&lru_maintainer_lock, NULL); - lru_maintainer_initialized = 1; - } + lru_maintainer_initialized = 1; return 0; } |