Browse Source
Update weed/s3api/bucket_paths.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
pull/8286/head
Chris Lu
18 hours ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
weed/s3api/bucket_paths.go
|
|
@ -95,9 +95,9 @@ func (s3a *S3ApiServer) readTableLocationMappingFromDirectory(bucket string) (st |
|
|
conflict := false |
|
|
conflict := false |
|
|
|
|
|
|
|
|
err := s3a.WithFilerClient(false, func(client filer_pb.SeaweedFilerClient) error { |
|
|
err := s3a.WithFilerClient(false, func(client filer_pb.SeaweedFilerClient) error { |
|
|
stream, err := client.ListEntries(context.Background(), &filer_pb.ListEntriesRequest{ |
|
|
|
|
|
|
|
|
stream, err := client.ListEntries(context.Background(), &filer_pb.ListEntriesRequest{ |
|
|
Directory: mappingDir, |
|
|
Directory: mappingDir, |
|
|
Limit: 1024, |
|
|
|
|
|
|
|
|
Limit: 4294967295, // math.MaxUint32
|
|
|
}) |
|
|
}) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return err |
|
|
return err |
|
|
|