1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-08 10:07:25 +02:00

fix compilation

This commit is contained in:
Chris Lu 2020-03-14 16:32:16 -07:00
parent 0576a27f44
commit d022b6bc0e

View file

@ -154,8 +154,8 @@ func distributedOperation(locations []operation.Location, store *storage.Store,
func getWritableRemoteReplications(s *storage.Store, volumeId needle.VolumeId, masterNode string) (
remoteLocations []operation.Location, err error) {
volume := s.GetVolume(volumeId)
if volume == nil {
v := s.GetVolume(volumeId)
if v == nil {
return nil, fmt.Errorf("fail to find volume %d", volumeId)
}
copyCount := v.ReplicaPlacement.GetCopyCount()