From ccbdb38c89a79a482c46faaa9b0dd53e3dacb822 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 24 Jan 2021 00:27:52 -0800 Subject: [PATCH] s3: fix for listing objects if more than 1000 in the folder many existing tools have max key set to 1000 --- weed/s3api/s3api_objects_list_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }