mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 23:16:27 -05:00
The try-enqueue and fallback block-enqueue both called std::forward<FuncType>(func_) on the same parameter. If try_enqueue's internals ever change to move from the argument before failing, the second forward would operate on a moved-from object. Fix by materializing into a Func up front and using std::move for both attempts. Also extract the duplicated scaling logic into _maybe_grow_on_pressure(), eliminating the copy-paste between the PToken and non-PToken overloads. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||