aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-12 20:33:00 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-12 20:33:00 -0700
commitd1d1fc772c884ffae466d24a82ef3d634951243a (patch)
tree2a0038155d07460f427c9622316904b1775cde15 /weed/command
parent5571f4f70a2e304343e76638caacc3bd0338a8d1 (diff)
downloadseaweedfs-d1d1fc772c884ffae466d24a82ef3d634951243a.tar.xz
seaweedfs-d1d1fc772c884ffae466d24a82ef3d634951243a.zip
move some volume lookup operations to grpc
jwt related lookup will come in next commit
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/backup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/backup.go b/weed/command/backup.go
index 207df770b..4c5a2d820 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(func() string { return *s.master }, vid.String())
+ lookup, err := operation.LookupVolumeId(func() string { return *s.master }, grpcDialOption, vid.String())
if err != nil {
fmt.Printf("Error looking up volume %d: %v\n", vid, err)
return true