diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-14 23:10:37 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-14 23:10:37 -0800 |
| commit | f002e668def4abdfda5fe8a76599ae6d0fb76319 (patch) | |
| tree | dce928f9f851226ce64df118fa9b892aea43f1a3 /weed/filer/filer.go | |
| parent | 19e52fd4146d32b4da48a3369385442e836a7647 (diff) | |
| download | seaweedfs-f002e668def4abdfda5fe8a76599ae6d0fb76319.tar.xz seaweedfs-f002e668def4abdfda5fe8a76599ae6d0fb76319.zip | |
change limit to int64 in case of overflow
Diffstat (limited to 'weed/filer/filer.go')
| -rw-r--r-- | weed/filer/filer.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/weed/filer/filer.go b/weed/filer/filer.go index 9a1b7be3a..dd0fcf2cf 100644 --- a/weed/filer/filer.go +++ b/weed/filer/filer.go @@ -281,10 +281,11 @@ func (f *Filer) FindEntry(ctx context.Context, p util.FullPath) (entry *Entry, e } -func (f *Filer) doListDirectoryEntries(ctx context.Context, p util.FullPath, startFileName string, inclusive bool, limit int, prefix string) (entries []*Entry, expiredCount int, lastFileName string, err error) { - listedEntries, _, listErr := f.Store.ListDirectoryPrefixedEntries(ctx, p, startFileName, inclusive, limit, prefix) +func (f *Filer) doListDirectoryEntries(ctx context.Context, p util.FullPath, startFileName string, inclusive bool, limit int64, prefix string) (entries []*Entry, hasMore bool, expiredCount int64, lastFileName string, err error) { + listedEntries, listHasMore, listErr := f.Store.ListDirectoryPrefixedEntries(ctx, p, startFileName, inclusive, limit, prefix) + hasMore = listHasMore if listErr != nil { - return listedEntries, expiredCount, "", listErr + return listedEntries, hasMore, expiredCount, "", listErr } for _, entry := range listedEntries { lastFileName = entry.Name() |
