repository: merge small pack files before flushing

This prevents chunk size leaks when a backup only consists of a small
file which is split in two parts, which end up in two individual pack
files.
This commit is contained in:
Michael Eischer committed 2025-03-23 12:29:16 +01:00
1 parent 62453f9356
commit 8d2d50d095
4 files changed
+124 -9

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ func TestPackerManagerWithOversizeBlob(t *testing.T) {
test.OK(t, pm.Flush(context.TODO()))
// oversized blob must be stored in a separate packfile
test.Assert(t, packFiles == 2 || packFiles == 3, "unexpected number of packfiles %v, expected 2 or 3", packFiles)
test.Assert(t, packFiles == 2, "unexpected number of packfiles %v, expected 2", packFiles)
}
func BenchmarkPackerManager(t *testing.B) {