diff options
| author | Konstantin Lebedev <lebedev_k@tochka.com> | 2020-08-31 21:55:18 +0500 |
|---|---|---|
| committer | Konstantin Lebedev <lebedev_k@tochka.com> | 2020-08-31 21:55:18 +0500 |
| commit | 18b98f9747082c9cd5e7ee83f98ab3d6c0eeddb3 (patch) | |
| tree | 8578cc20890c13327d71e12f477e1cd6e34e494d /weed | |
| parent | 22f32e75c411fbf13c209ebaeadb673d72a9a29b (diff) | |
| download | seaweedfs-18b98f9747082c9cd5e7ee83f98ab3d6c0eeddb3.tar.xz seaweedfs-18b98f9747082c9cd5e7ee83f98ab3d6c0eeddb3.zip | |
not convert err to string
Diffstat (limited to 'weed')
| -rw-r--r-- | weed/filer2/filerstore.go | 2 |
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 { |
