diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-03-14 16:32:16 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-03-14 16:32:16 -0700 |
| commit | d022b6bc0ec908b58f4a073382b28eac4bba03ef (patch) | |
| tree | 6100148ddd8a6f3ea8a5972cd3969df4495f9eed | |
| parent | 0576a27f44a2264f39a2cc6bcfe13dcb58dda55a (diff) | |
| download | seaweedfs-d022b6bc0ec908b58f4a073382b28eac4bba03ef.tar.xz seaweedfs-d022b6bc0ec908b58f4a073382b28eac4bba03ef.zip | |
fix compilation
| -rw-r--r-- | weed/topology/store_replicate.go | 4 |
1 files 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() |
