diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-24 00:27:52 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-24 00:27:52 -0800 |
| commit | ccbdb38c89a79a482c46faaa9b0dd53e3dacb822 (patch) | |
| tree | 21e481993e3188a8a7680caf4cc3fde34e61717b /weed/s3api/s3api_objects_list_handlers.go | |
| parent | 80b869268898798c662618b11933af82ee374f1c (diff) | |
| download | seaweedfs-ccbdb38c89a79a482c46faaa9b0dd53e3dacb822.tar.xz seaweedfs-ccbdb38c89a79a482c46faaa9b0dd53e3dacb822.zip | |
s3: fix for listing objects if more than 1000 in the folder
many existing tools have max key set to 1000
Diffstat (limited to 'weed/s3api/s3api_objects_list_handlers.go')
| -rw-r--r-- | weed/s3api/s3api_objects_list_handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/s3api/s3api_objects_list_handlers.go b/weed/s3api/s3api_objects_list_handlers.go index a2407fced..2d36c6ec9 100644 --- a/weed/s3api/s3api_objects_list_handlers.go +++ b/weed/s3api/s3api_objects_list_handlers.go @@ -238,7 +238,7 @@ func (s3a *S3ApiServer) doListFilerEntries(client filer_pb.SeaweedFilerClient, d return } } - if counter >= maxKeys + 1 { + if counter >= maxKeys { isTruncated = true return } |
