mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 15:06:33 -05:00
The assert guarding against BoundedQueue::try_enqueue moving the callable on failure is compiled out in release builds (-DNDEBUG). If the queue implementation ever changed to move-from on failure, the empty Func would be enqueued as a poison pill, silently causing a worker thread to exit — a subtle, hard-to-diagnose pool corruption. Replace both assert() calls with a std::logic_error throw that remains active in all build configurations. This makes the invariant violation immediately visible rather than silently dangerous. Also remove the now-unused <cassert> include. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||