There are user commands which can optionally control the slab rebalancer,
so the lock is mostly for that interaction from worker threads. The
restart system also needs to stop the thread gracefully.
On Fri, 7 May 2021, Wenxin Zheng wrote:
> It seems that in 'slabs.c', slab_rebalance_thread will be created only once. Which variables are required to be protected by lock `slabs_rebalance_lock` ?
> You received this message because you are subscribed to the Google Groups "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to memcached+...@googlegroups.com
> To view this discussion on the web visit https://groups.google.com/d/msgid/memcached/636d45a7-76a5-47c4-b90f-433a13d73c61n%40googlegroups.com