Browse Source
Merge pull request #2667 from kmlebedev/syncReplicatedWrite
atomically write to replicas
pull/2670/head
Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
weed/topology/store_replicate.go
|
|
@ -101,6 +101,7 @@ func ReplicatedWrite(masterFn operation.GetMasterFn, grpcDialOption grpc.DialOpt |
|
|
|
stats.VolumeServerRequestCounter.WithLabelValues(stats.ErrorWriteToReplicas).Inc() |
|
|
|
err = fmt.Errorf("failed to write to replicas for volume %d: %v", volumeId, err) |
|
|
|
glog.V(0).Infoln(err) |
|
|
|
return false, err |
|
|
|
} |
|
|
|
} |
|
|
|
return |
|
|
|