aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filerstore_wrapper.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer/filerstore_wrapper.go')
-rw-r--r--weed/filer/filerstore_wrapper.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/weed/filer/filerstore_wrapper.go b/weed/filer/filerstore_wrapper.go
index 47b5036f7..ca531dc3a 100644
--- a/weed/filer/filerstore_wrapper.go
+++ b/weed/filer/filerstore_wrapper.go
@@ -4,6 +4,7 @@ import (
"context"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/viant/ptrie"
+ "io"
"math"
"strings"
"time"
@@ -15,6 +16,7 @@ import (
var (
_ = VirtualFilerStore(&FilerStoreWrapper{})
+ _ = Debuggable(&FilerStoreWrapper{})
)
type VirtualFilerStore interface {
@@ -333,3 +335,9 @@ func (fsw *FilerStoreWrapper) KvGet(ctx context.Context, key []byte) (value []by
func (fsw *FilerStoreWrapper) KvDelete(ctx context.Context, key []byte) (err error) {
return fsw.getDefaultStore().KvDelete(ctx, key)
}
+
+func (fsw *FilerStoreWrapper) Debug(writer io.Writer) {
+ if debuggable, ok := fsw.getDefaultStore().(Debuggable); ok {
+ debuggable.Debug(writer)
+ }
+}