Merge pull request #30497 from overleaf/mj-git-bridge-staging-swap

[git-bridge] Reduce amount of projects on staging git bridge disk

GitOrigin-RevId: 428825f354487ece20b2538e7d312186d56cc03a
This commit is contained in:
Mathias Jakobsen
2026-01-06 12:45:05 +00:00
committed by Copybot
parent 9be3c3fd76
commit 32845170ff

View File

@@ -144,7 +144,9 @@ public class SwapJobImpl implements SwapJob {
exceptionProjectNames.add(projectName);
}
}
if (totalSize > lowWatermarkBytes) {
if (lowWatermarkBytes > 0 && totalSize > lowWatermarkBytes) {
// NOTE: If lowWatermarkBytes is 0, we never expect to reach it (since
// we keep the repo database on disk), so don't log a warning.
Log.warn("Finished swapping, but total size is still too high.");
}
Log.debug(