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.

fix issue 34

Chris Luff1c04c4860e
diff --git a/go/storage/store.go b/go/storage/store.go
index 0238bbbbdb..fcb9ce41cb 100644
--- a/go/storage/store.go
+++ b/go/storage/store.go
@@ -146,9 +146,8 @@ func (s *Store) FreezeVolume(volumeIdString string) error {
return fmt.Errorf("Volume %s is already read-only", volumeIdString)
}
return v.freeze()
- } else {
- return fmt.Errorf("volume id %s is not found during freeze!", vid)
}
+ return fmt.Errorf("volume id %s is not found during freeze!", vid)
}
func (l *DiskLocation) loadExistingVolumes() {
if dirs, err := ioutil.ReadDir(l.directory); err == nil {