fix compilation
This commit is contained in:
@@ -154,8 +154,8 @@ func distributedOperation(locations []operation.Location, store *storage.Store,
|
|||||||
|
|
||||||
func getWritableRemoteReplications(s *storage.Store, volumeId needle.VolumeId, masterNode string) (
|
func getWritableRemoteReplications(s *storage.Store, volumeId needle.VolumeId, masterNode string) (
|
||||||
remoteLocations []operation.Location, err error) {
|
remoteLocations []operation.Location, err error) {
|
||||||
volume := s.GetVolume(volumeId)
|
v := s.GetVolume(volumeId)
|
||||||
if volume == nil {
|
if v == nil {
|
||||||
return nil, fmt.Errorf("fail to find volume %d", volumeId)
|
return nil, fmt.Errorf("fail to find volume %d", volumeId)
|
||||||
}
|
}
|
||||||
copyCount := v.ReplicaPlacement.GetCopyCount()
|
copyCount := v.ReplicaPlacement.GetCopyCount()
|
||||||
|
|||||||
Reference in New Issue
Block a user