adjust print out when error
This commit is contained in:
@@ -96,12 +96,11 @@ func distributedOperation(masterNode string, store *storage.Store, volumeId stor
|
|||||||
ret = ret && <-results
|
ret = ret && <-results
|
||||||
}
|
}
|
||||||
if volume := store.GetVolume(volumeId); volume != nil {
|
if volume := store.GetVolume(volumeId); volume != nil {
|
||||||
copyCount := volume.ReplicaPlacement.GetCopyCount() - 1
|
if length+1 < volume.ReplicaPlacement.GetCopyCount() {
|
||||||
if length < copyCount {
|
glog.V(0).Infof("replicating opetations [%d] is less than volume's replication copy count [%d]", length+1, volume.ReplicaPlacement.GetCopyCount())
|
||||||
glog.V(0).Infoln("replicating opetations [%d] is less than volume's replication copy count [%d]", length, copyCount)
|
|
||||||
ret = false
|
ret = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret
|
return ret
|
||||||
} else {
|
} else {
|
||||||
glog.V(0).Infoln("Failed to lookup for", volumeId, lookupErr.Error())
|
glog.V(0).Infoln("Failed to lookup for", volumeId, lookupErr.Error())
|
||||||
|
|||||||
Reference in New Issue
Block a user