aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Lebedev <lebedev_k@tochka.com>2020-08-31 21:55:18 +0500
committerKonstantin Lebedev <lebedev_k@tochka.com>2020-08-31 21:55:18 +0500
commit18b98f9747082c9cd5e7ee83f98ab3d6c0eeddb3 (patch)
tree8578cc20890c13327d71e12f477e1cd6e34e494d
parent22f32e75c411fbf13c209ebaeadb673d72a9a29b (diff)
downloadseaweedfs-18b98f9747082c9cd5e7ee83f98ab3d6c0eeddb3.tar.xz
seaweedfs-18b98f9747082c9cd5e7ee83f98ab3d6c0eeddb3.zip
not convert err to string
-rw-r--r--weed/filer2/filerstore.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer2/filerstore.go b/weed/filer2/filerstore.go
index b55aeb4d6..db53734bc 100644
--- a/weed/filer2/filerstore.go
+++ b/weed/filer2/filerstore.go
@@ -138,7 +138,7 @@ func (fsw *FilerStoreWrapper) ListDirectoryPrefixedEntries(ctx context.Context,
stats.FilerStoreHistogram.WithLabelValues(fsw.ActualStore.GetName(), "list").Observe(time.Since(start).Seconds())
}()
entries, err := fsw.ActualStore.ListDirectoryPrefixedEntries(ctx, dirPath, startFileName, includeStartFile, limit, prefix)
- if err.Error() == ErrUnsupportedListDirectoryPrefixed.Error() {
+ if err == ErrUnsupportedListDirectoryPrefixed {
count := 0
notPrefixed, err := fsw.ActualStore.ListDirectoryEntries(ctx, dirPath, startFileName, includeStartFile, limit)
if err != nil {