Clean entire tmp-old on restart (#15979)

This commit is contained in:
Klaus Post
2022-10-31 15:27:50 +01:00
committed by GitHub
parent b57fbff7c1
commit ecc932d5dd
7 changed files with 19 additions and 42 deletions

View File

@@ -38,7 +38,7 @@ func TestFixFormatV3(t *testing.T) {
}
endpoints := mustGetNewEndpoints(erasureDirs...)
storageDisks, errs := initStorageDisksWithErrors(endpoints)
storageDisks, errs := initStorageDisksWithErrors(endpoints, true)
for _, err := range errs {
if err != nil && err != errDiskNotFound {
t.Fatal(err)
@@ -559,7 +559,7 @@ func benchmarkInitStorageDisksN(b *testing.B, nDisks int) {
b.RunParallel(func(pb *testing.PB) {
endpoints := endpoints
for pb.Next() {
initStorageDisksWithErrors(endpoints)
initStorageDisksWithErrors(endpoints, true)
}
})
}