Browse Source

increase filer pagination limit

pull/1158/head
Chris Lu 5 years ago
parent
commit
f51a6d8ba5
  1. 2
      weed/filer2/filer_client_util.go
  2. 2
      weed/filesys/dir.go
  3. 2
      weed/server/filer_grpc_server.go

2
weed/filer2/filer_client_util.go

@ -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 := ""

2
weed/filesys/dir.go

@ -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 := ""

2
weed/server/filer_grpc_server.go

@ -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
}

Loading…
Cancel
Save