diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-17 20:55:55 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-17 20:55:55 -0800 |
| commit | 6daa932f5c1571cc60cf89014cf17810d756dd6b (patch) | |
| tree | a6c6fce133c0178efec6324c708f3371dcd4f180 /weed/command/filer_copy.go | |
| parent | dd9f3a01049bef33046d3728d82b25b67b8533ac (diff) | |
| download | seaweedfs-6daa932f5c1571cc60cf89014cf17810d756dd6b.tar.xz seaweedfs-6daa932f5c1571cc60cf89014cf17810d756dd6b.zip | |
refactoring to get master function, instead of passing master values directly
this will enable retrying later
Diffstat (limited to 'weed/command/filer_copy.go')
| -rw-r--r-- | weed/command/filer_copy.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 20f00a3eb..bf64e72b3 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -463,7 +463,9 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File, for _, chunk := range chunks { fileIds = append(fileIds, chunk.FileId) } - operation.DeleteFiles(copy.masters[0], false, worker.options.grpcDialOption, fileIds) + operation.DeleteFiles(func() string { + return copy.masters[0] + }, false, worker.options.grpcDialOption, fileIds) return uploadError } |
