aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_backup.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-03-07 10:42:15 -0800
committerchrislu <chris.lu@gmail.com>2024-03-07 10:42:15 -0800
commitb544a69550d6793dc61eafccc9b850d43bee5d32 (patch)
treea1c69989d4566eb43f404b01aec144f7e8328f49 /weed/command/filer_backup.go
parent5c0f01c0eb3a022abbaa4e6b1bed3254d5ab6506 (diff)
parent170b63d6f89284b804b153343380537fd09e0025 (diff)
downloadseaweedfs-b544a69550d6793dc61eafccc9b850d43bee5d32.tar.xz
seaweedfs-b544a69550d6793dc61eafccc9b850d43bee5d32.zip
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
Diffstat (limited to 'weed/command/filer_backup.go')
-rw-r--r--weed/command/filer_backup.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/command/filer_backup.go b/weed/command/filer_backup.go
index 691b1c0b5..4aeab60f2 100644
--- a/weed/command/filer_backup.go
+++ b/weed/command/filer_backup.go
@@ -85,8 +85,7 @@ const (
func doFilerBackup(grpcDialOption grpc.DialOption, backupOption *FilerBackupOptions, clientId int32, clientEpoch int32) error {
// find data sink
- config := util.GetViper()
- dataSink := findSink(config)
+ dataSink := findSink(util.GetViper())
if dataSink == nil {
return fmt.Errorf("no data sink configured in replication.toml")
}