mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust print out when error
This commit is contained in:
parent
963c36338a
commit
6c88abf62f
|
@ -96,9 +96,8 @@ func distributedOperation(masterNode string, store *storage.Store, volumeId stor
|
|||
ret = ret && <-results
|
||||
}
|
||||
if volume := store.GetVolume(volumeId); volume != nil {
|
||||
copyCount := volume.ReplicaPlacement.GetCopyCount() - 1
|
||||
if length < copyCount {
|
||||
glog.V(0).Infoln("replicating opetations [%d] is less than volume's replication copy count [%d]", length, copyCount)
|
||||
if length+1 < volume.ReplicaPlacement.GetCopyCount() {
|
||||
glog.V(0).Infof("replicating opetations [%d] is less than volume's replication copy count [%d]", length+1, volume.ReplicaPlacement.GetCopyCount())
|
||||
ret = false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue