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/backup.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/backup.go')
| -rw-r--r-- | weed/command/backup.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/backup.go b/weed/command/backup.go index 4c37c2763..b9973c6a9 100644 --- a/weed/command/backup.go +++ b/weed/command/backup.go @@ -72,7 +72,7 @@ func runBackup(cmd *Command, args []string) bool { vid := needle.VolumeId(*s.volumeId) // find volume location, replication, ttl info - lookup, err := operation.Lookup(*s.master, vid.String()) + lookup, err := operation.Lookup(func()string{return *s.master}, vid.String()) if err != nil { fmt.Printf("Error looking up volume %d: %v\n", vid, err) return true |
