mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 14:36:36 -05:00
The counter was incremented before the enqueue call, which can block indefinitely for bounded queues. If tasks_pending() is used as a drain-complete signal (pending == 0), the pre-increment would overcount while a producer is blocked waiting for a slot. Move the increment to after the enqueue returns in all paths: enqueue_work, enqueue_work_autoscale, and enqueue_task. The try_enqueue variants already incremented after success. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||