diff options
| -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, } |
