aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/backend
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-12 02:28:13 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-12 02:28:13 -0800
commitcfb9342a15ce73c1e04c0e690cf87f65133bcf1b (patch)
tree40e68e68d98472e8f942c04a501839a0135ef1c5 /weed/storage/backend
parent38d516251eb080e56ee16747684e808a06cb6702 (diff)
downloadseaweedfs-cfb9342a15ce73c1e04c0e690cf87f65133bcf1b.tar.xz
seaweedfs-cfb9342a15ce73c1e04c0e690cf87f65133bcf1b.zip
avoid concurrent map updates to viper
Diffstat (limited to 'weed/storage/backend')
-rw-r--r--weed/storage/backend/backend.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/backend/backend.go b/weed/storage/backend/backend.go
index daab29621..b8b883be6 100644
--- a/weed/storage/backend/backend.go
+++ b/weed/storage/backend/backend.go
@@ -1,6 +1,7 @@
package backend
import (
+ "github.com/chrislusf/seaweedfs/weed/util"
"io"
"os"
"strings"
@@ -9,7 +10,6 @@ import (
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"
"github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"
- "github.com/spf13/viper"
)
type BackendStorageFile interface {
@@ -45,7 +45,7 @@ var (
)
// used by master to load remote storage configurations
-func LoadConfiguration(config *viper.Viper) {
+func LoadConfiguration(config *util.ViperProxy) {
StorageBackendPrefix := "storage.backend"