diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2019-07-24 02:05:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-24 02:05:55 -0700 |
| commit | f1e43fe274e43be93e5514edb9862db60ba5c85f (patch) | |
| tree | 98df3048cb7f0182be5a499d8f5c7393e5c20ff9 | |
| parent | 344ce90315cfe0f67d7952947083d8c6b926969f (diff) | |
| parent | 9e3b77c3adf659de088b496df7bcaec4dc01f6c1 (diff) | |
| download | seaweedfs-f1e43fe274e43be93e5514edb9862db60ba5c85f.tar.xz seaweedfs-f1e43fe274e43be93e5514edb9862db60ba5c85f.zip | |
Merge pull request #1020 from divinerapier/master
avoid double warpping
| -rw-r--r-- | weed/filer2/filerstore.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/filer2/filerstore.go b/weed/filer2/filerstore.go index 231c7fc68..8caa44ee2 100644 --- a/weed/filer2/filerstore.go +++ b/weed/filer2/filerstore.go @@ -34,6 +34,9 @@ type FilerStoreWrapper struct { } func NewFilerStoreWrapper(store FilerStore) *FilerStoreWrapper { + if innerStore, ok := store.(*FilerStoreWrapper); ok { + return innerStore + } return &FilerStoreWrapper{ actualStore: store, } |
