summaryrefslogtreecommitdiff
path: root/items.c
diff options
context:
space:
mode:
authorDaniel Schemmel <daniel.schemmel@comsys.rwth-aachen.de>2019-11-09 19:44:35 +0100
committerdormando <dormando@rydia.net>2019-11-10 23:21:53 -0800
commit90306c539327f4e36b950c9f1a83e65d2ad44a4b (patch)
tree6e8e4d2d8a4a612062a5471903967437e3199fa3 /items.c
parent4575e1f9668a467aa4dc628101509f7f5a5a2efe (diff)
downloadmemcached-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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/items.c b/items.c
index 7c964ce..f8250a8 100644
--- a/items.c
+++ b/items.c
@@ -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;
}