Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

clean up test files

Chris Lu5c6c75761963
diff --git a/weed/storage/erasure_coding/ec_test.go b/weed/storage/erasure_coding/ec_test.go
index 602ea0bc06..57df09525c 100644
--- a/weed/storage/erasure_coding/ec_test.go
+++ b/weed/storage/erasure_coding/ec_test.go
@@ -178,7 +178,7 @@ func readFromFile(file *os.File, data []byte, ecFileOffset int64) (err error) {
func removeGeneratedFiles(baseFileName string) {
for i := 0; i < DataShardsCount+ParityShardsCount; i++ {
- fname := fmt.Sprintf("%s.ec%02d", baseFileName, i+1)
+ fname := fmt.Sprintf("%s.ec%02d", baseFileName, i)
os.Remove(fname)
}
os.Remove(baseFileName + ".ecx")