mirror of
https://github.com/moby/buildkit.git
synced 2026-10-28 16:44:37 +08:00
A byte threshold alone can schedule large database copies that reclaim only a small fraction of the file. Require a configurable 10% floor for automatic and manual compaction, and use 30% as the percentage trigger. Preserve an explicitly configured percentage below 10% by lowering the default floor to match unless the floor was set separately. Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>