Browse Source

update

pull/279/head
tnextday 10 years ago
parent
commit
0e44e8db12
  1. 2
      go/topology/store_replicate.go

2
go/topology/store_replicate.go

@ -83,6 +83,8 @@ func distributedOperation(masterNode string, store *storage.Store, volumeId stor
for i := 0; i < length; i++ { for i := 0; i < length; i++ {
ret = ret && <-results ret = ret && <-results
} }
// we shouldn't check ReplicaPlacement because the needle have been written in head volume
// if volume := store.GetVolume(volumeId); volume != nil { // if volume := store.GetVolume(volumeId); volume != nil {
// if length+1 < volume.ReplicaPlacement.GetCopyCount() { // 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()) // glog.V(0).Infof("replicating opetations [%d] is less than volume's replication copy count [%d]", length+1, volume.ReplicaPlacement.GetCopyCount())

Loading…
Cancel
Save