diff --git a/weed/filer2/filer_client_util.go b/weed/filer2/filer_client_util.go index ff20f06c2..8cae55d90 100644 --- a/weed/filer2/filer_client_util.go +++ b/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 := "" diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index 7c86473cd..7c19cbe1d 100644 --- a/weed/filesys/dir.go +++ b/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 := "" diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.go index feab11c79..b0163ea10 100644 --- a/weed/server/filer_grpc_server.go +++ b/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 }