diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-11-11 22:09:41 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-11 22:09:41 -0800 |
| commit | 827930e2492280c80a1e4dbe2a4e07bf4c7447e5 (patch) | |
| tree | 8de75aa01a8cec976c546bc64119b4a09b0f3ea8 /weed/server/master_server.go | |
| parent | 4300ca814219105b5900ebeea28ee2d6a4ca34c2 (diff) | |
| parent | 0880aff224976ba1a22f7f1d815a35f2556165dd (diff) | |
| download | seaweedfs-827930e2492280c80a1e4dbe2a4e07bf4c7447e5.tar.xz seaweedfs-827930e2492280c80a1e4dbe2a4e07bf4c7447e5.zip | |
Merge pull request #1610 from kmlebedev/prefer_read_in_this_dc
prefer to read from volumes in this data center
Diffstat (limited to 'weed/server/master_server.go')
| -rw-r--r-- | weed/server/master_server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/master_server.go b/weed/server/master_server.go index cc1c4b2ad..ccc94ebac 100644 --- a/weed/server/master_server.go +++ b/weed/server/master_server.go @@ -93,7 +93,7 @@ func NewMasterServer(r *mux.Router, option *MasterOption, peers []string) *Maste preallocateSize: preallocateSize, clientChans: make(map[string]chan *master_pb.VolumeLocation), grpcDialOption: grpcDialOption, - MasterClient: wdclient.NewMasterClient(grpcDialOption, "master", option.Host, 0, peers), + MasterClient: wdclient.NewMasterClient(grpcDialOption, "master", option.Host, 0, "", peers), adminLocks: NewAdminLocks(), } ms.bounedLeaderChan = make(chan int, 16) |
