diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-07-28 14:22:46 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-07-28 14:22:46 -0700 |
| commit | 1d779389cbf9e5cf19de5ceba136d862c49b9d8f (patch) | |
| tree | 29de8937565aad998b1737ce5a6ea53b1d5ca505 /weed/filer2/filer.go | |
| parent | 01bcc89803b5caefe6d1809d4a85bc8a1d19918e (diff) | |
| download | seaweedfs-1d779389cbf9e5cf19de5ceba136d862c49b9d8f.tar.xz seaweedfs-1d779389cbf9e5cf19de5ceba136d862c49b9d8f.zip | |
MasterClient replicates all vid locations
Diffstat (limited to 'weed/filer2/filer.go')
| -rw-r--r-- | weed/filer2/filer.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.go index f5c2849fe..e1c3fea84 100644 --- a/weed/filer2/filer.go +++ b/weed/filer2/filer.go @@ -18,13 +18,13 @@ import ( type Filer struct { store FilerStore directoryCache *ccache.Cache - masterClient *wdclient.MasterClient + MasterClient *wdclient.MasterClient } func NewFiler(masters []string) *Filer { return &Filer{ directoryCache: ccache.New(ccache.Configure().MaxSize(1000).ItemsToPrune(100)), - masterClient: wdclient.NewMasterClient(context.Background(), "filer", masters), + MasterClient: wdclient.NewMasterClient(context.Background(), "filer", masters), } } @@ -37,11 +37,11 @@ func (f *Filer) DisableDirectoryCache() { } func (fs *Filer) GetMaster() string { - return fs.masterClient.GetMaster() + return fs.MasterClient.GetMaster() } func (fs *Filer) KeepConnectedToMaster() { - fs.masterClient.KeepConnectedToMaster() + fs.MasterClient.KeepConnectedToMaster() } func (f *Filer) CreateEntry(entry *Entry) error { |
