Chris Lu 4 years ago
parent
commit
738c4fd203
  1. 4
      weed/storage/store.go

4
weed/storage/store.go

@ -257,14 +257,14 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat {
location.volumesLock.Lock() location.volumesLock.Lock()
for _, vid := range deleteVids { for _, vid := range deleteVids {
found, err := location.deleteVolumeById(vid) found, err := location.deleteVolumeById(vid)
if found {
if err == nil { if err == nil {
if found {
glog.V(0).Infof("volume %d is deleted", vid) glog.V(0).Infof("volume %d is deleted", vid)
}
} else { } else {
glog.V(0).Infof("delete volume %d: %v", vid, err) glog.V(0).Infof("delete volume %d: %v", vid, err)
} }
} }
}
location.volumesLock.Unlock() location.volumesLock.Unlock()
} }
} }

Loading…
Cancel
Save