aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-24 00:27:52 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-24 00:27:52 -0800
commitccbdb38c89a79a482c46faaa9b0dd53e3dacb822 (patch)
tree21e481993e3188a8a7680caf4cc3fde34e61717b
parent80b869268898798c662618b11933af82ee374f1c (diff)
downloadseaweedfs-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
-rw-r--r--weed/s3api/s3api_objects_list_handlers.go2
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
}