increase filer pagination limit

This commit is contained in:
Chris Lu 2019-12-11 22:21:37 -08:00
parent c602073395
commit f51a6d8ba5
3 changed files with 3 additions and 3 deletions

View file

@ -128,7 +128,7 @@ func ReadDirAllEntries(ctx context.Context, filerClient FilerClient, fullDirPath
err = filerClient.WithFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
paginationLimit := 1024
paginationLimit := 1024 * 256
lastEntryName := ""

View file

@ -214,7 +214,7 @@ func (dir *Dir) ReadDirAll(ctx context.Context) (ret []fuse.Dirent, err error) {
err = dir.wfs.WithFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
paginationLimit := 1024
paginationLimit := 1024 * 256
remaining := dir.wfs.option.DirListingLimit
lastEntryName := ""

View file

@ -40,7 +40,7 @@ func (fs *FilerServer) ListEntries(ctx context.Context, req *filer_pb.ListEntrie
limit = fs.option.DirListingLimit
}
paginationLimit := 1024
paginationLimit := 1024 * 256
if limit < paginationLimit {
paginationLimit = limit
}