summaryrefslogtreecommitdiff
path: root/assoc.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 /assoc.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 'assoc.c')
-rw-r--r--assoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assoc.c b/assoc.c
index 68235d5..1a6b845 100644
--- a/assoc.c
+++ b/assoc.c
@@ -273,7 +273,7 @@ int start_assoc_maintenance_thread() {
hash_bulk_move = DEFAULT_HASH_BULK_MOVE;
}
}
- pthread_mutex_init(&maintenance_lock, NULL);
+
if ((ret = pthread_create(&maintenance_tid, NULL,
assoc_maintenance_thread, NULL)) != 0) {
fprintf(stderr, "Can't create thread: %s\n", strerror(ret));