mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 04:17:56 +08:00
increase filer pagination limit
This commit is contained in:
@@ -128,7 +128,7 @@ func ReadDirAllEntries(ctx context.Context, filerClient FilerClient, fullDirPath
|
|||||||
|
|
||||||
err = filerClient.WithFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
|
err = filerClient.WithFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
|
||||||
|
|
||||||
paginationLimit := 1024
|
paginationLimit := 1024 * 256
|
||||||
|
|
||||||
lastEntryName := ""
|
lastEntryName := ""
|
||||||
|
|
||||||
|
@@ -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 {
|
err = dir.wfs.WithFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
|
||||||
|
|
||||||
paginationLimit := 1024
|
paginationLimit := 1024 * 256
|
||||||
remaining := dir.wfs.option.DirListingLimit
|
remaining := dir.wfs.option.DirListingLimit
|
||||||
|
|
||||||
lastEntryName := ""
|
lastEntryName := ""
|
||||||
|
@@ -40,7 +40,7 @@ func (fs *FilerServer) ListEntries(ctx context.Context, req *filer_pb.ListEntrie
|
|||||||
limit = fs.option.DirListingLimit
|
limit = fs.option.DirListingLimit
|
||||||
}
|
}
|
||||||
|
|
||||||
paginationLimit := 1024
|
paginationLimit := 1024 * 256
|
||||||
if limit < paginationLimit {
|
if limit < paginationLimit {
|
||||||
paginationLimit = limit
|
paginationLimit = limit
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user