mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
enqueue_work_autoscale relies on BoundedQueue::try_enqueue leaving the callable untouched when the semaphore check fails. This is correct today because tryWait() is evaluated before std::forward moves the item, but the coupling is implicit — a future BoundedQueue change that reorders these operations would silently introduce a use-after- move bug on the blocking fallback path. Add a debug assert after the failed try_enqueue to verify the Func is still valid before using it on the blocking path. Strengthen the comment to explicitly name the invariant being relied upon. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||