add var UnsupportedListDirectoryPrefixedErr

This commit is contained in:
Konstantin Lebedev
2020-08-31 21:43:32 +05:00
parent 60a86cfe04
commit 7f013d77d6
9 changed files with 13 additions and 19 deletions

View File

@@ -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() == UnsupportedListDirectoryPrefixedErr {
if err.Error() == UnsupportedListDirectoryPrefixedErr.Error() {
count := 0
notPrefixed, err := fsw.ActualStore.ListDirectoryEntries(ctx, dirPath, startFileName, includeStartFile, limit)
if err != nil {