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 logging when error

Chris Lu738c4fd20363
diff --git a/weed/storage/store.go b/weed/storage/store.go
index 83c40a01a0..ff28be47c3 100644
--- a/weed/storage/store.go
+++ b/weed/storage/store.go
@@ -257,12 +257,12 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat {
location.volumesLock.Lock()
for _, vid := range deleteVids {
found, err := location.deleteVolumeById(vid)
- if found {
- if err == nil {
+ if err == nil {
+ if found {
glog.V(0).Infof("volume %d is deleted", vid)
- } else {
- glog.V(0).Infof("delete volume %d: %v", vid, err)
}
+ } else {
+ glog.V(0).Infof("delete volume %d: %v", vid, err)
}
}
location.volumesLock.Unlock()