mirror of
https://github.com/restic/restic.git
synced 2026-11-05 23:09:22 +00:00
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:
1 parent
62453f9356
commit
8d2d50d095
4 files changed
+124
-9
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user