Merge pull request #2667 from kmlebedev/syncReplicatedWrite

atomically write to replicas
This commit is contained in:
Chris Lu 2022-02-14 01:48:21 -08:00 committed by GitHub
commit 305418fac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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