mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Move all List calls to honor new maxObjectList limit (#8459)
This commit is contained in:
committed by
kannappanr
parent
8cc5ecec23
commit
599aae5ba6
@@ -135,7 +135,7 @@ func lifecycleRound(ctx context.Context, objAPI ObjectLayer) error {
|
||||
// List all objects and calculate lifecycle action based on object name & object modtime
|
||||
marker := ""
|
||||
for {
|
||||
res, err := objAPI.ListObjects(ctx, bucket.Name, commonPrefix, marker, "", 1000)
|
||||
res, err := objAPI.ListObjects(ctx, bucket.Name, commonPrefix, marker, "", maxObjectList)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user