From d022b6bc0ec908b58f4a073382b28eac4bba03ef Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 14 Mar 2020 16:32:16 -0700 Subject: [PATCH] fix compilation --- weed/topology/store_replicate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/topology/store_replicate.go b/weed/topology/store_replicate.go index 24c32ef62..c7738311c 100644 --- a/weed/topology/store_replicate.go +++ b/weed/topology/store_replicate.go @@ -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()