mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-08 23:37:43 +02:00
add warning for not enough copies when skipping vacuuming volumes
fix https://github.com/seaweedfs/seaweedfs/issues/5906
This commit is contained in:
1 parent
ad5a625781
commit
b3696024d1
1 file changed
+5
-1
@@ -270,7 +270,11 @@ func (t *Topology) vacuumOneVolumeId(grpcDialOption grpc.DialOption, volumeLayou
|
||||
isEnoughCopies := volumeLayout.enoughCopies(vid)
|
||||
volumeLayout.accessLock.RUnlock()
|
||||
|
||||
if isReadOnly || !isEnoughCopies {
|
||||
if isReadOnly {
|
||||
return
|
||||
}
|
||||
if !isEnoughCopies {
|
||||
glog.Warningf("skip vacuuming: not enough copies for volume:%d", vid)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user