mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-28 19:06:39 -05:00
If remove_thread() was called but no worker claimed the decrement before shutdown, _remove_count remains positive. Workers exiting via poison pills would enter the _remove_count CAS loop in _process_func, but since _stop is set, _remove_self is a no-op anyway. The stale counter is harmless at runtime but confusing when debugging — it suggests pending work that will never complete. Zero the counter after _stop is set and before enqueuing poison pills so the shutdown path is clean and unambiguous. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||