s3: fix for listing objects if more than 1000 in the folder

many existing tools have max key set to 1000
This commit is contained in:
Chris Lu 2021-01-24 00:27:52 -08:00
parent 80b8692688
commit ccbdb38c89

View file

@ -238,7 +238,7 @@ func (s3a *S3ApiServer) doListFilerEntries(client filer_pb.SeaweedFilerClient, d
return
}
}
if counter >= maxKeys + 1 {
if counter >= maxKeys {
isTruncated = true
return
}