aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filer.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-05-18 11:16:07 -0700
committerChris Lu <chris.lu@gmail.com>2019-05-18 11:16:07 -0700
commit12dc6608f00811dd0a25e1d2563cc3f4b2c81c06 (patch)
tree68fc0f1d5a52bb5d2989dd74781d175ee0f7cf1d /weed/filer2/filer.go
parent8156958ee975e61e5ab53e5c3cab7613cd43bda1 (diff)
parentf2c4c888f6f26e632792b1c8db8541051ba02dcf (diff)
downloadseaweedfs-12dc6608f00811dd0a25e1d2563cc3f4b2c81c06.tar.xz
seaweedfs-12dc6608f00811dd0a25e1d2563cc3f4b2c81c06.zip
Merge branch 'master' into erasure_coding
Diffstat (limited to 'weed/filer2/filer.go')
-rw-r--r--weed/filer2/filer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.go
index 6b784e0b2..68ca3180f 100644
--- a/weed/filer2/filer.go
+++ b/weed/filer2/filer.go
@@ -21,7 +21,7 @@ var (
)
type Filer struct {
- store FilerStore
+ store *FilerStoreWrapper
directoryCache *ccache.Cache
MasterClient *wdclient.MasterClient
fileIdDeletionChan chan string
@@ -42,7 +42,7 @@ func NewFiler(masters []string, grpcDialOption grpc.DialOption) *Filer {
}
func (f *Filer) SetStore(store FilerStore) {
- f.store = store
+ f.store = NewFilerStoreWrapper(store)
}
func (f *Filer) DisableDirectoryCache() {