mirror of
https://github.com/rclone/rclone.git
synced 2025-01-10 16:28:30 +01:00
qingstor: fix rclone cleanup
This patch changes to using the default page limit for listing unfinished multpart uploads rather than 1000. 1000 is the maximum specified in the docs, but setting anything larger than 200 gives an error.
This commit is contained in:
parent
d7cd35e2ca
commit
a774f6bfdb
@ -872,11 +872,12 @@ func (f *Fs) cleanUpBucket(ctx context.Context, bucket string) (err error) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
maxLimit := int(listLimitSize)
|
||||
// maxLimit := int(listLimitSize)
|
||||
var marker *string
|
||||
for {
|
||||
req := qs.ListMultipartUploadsInput{
|
||||
Limit: &maxLimit,
|
||||
// The default is 200 but this errors if more than 200 is put in so leave at the default
|
||||
// Limit: &maxLimit,
|
||||
KeyMarker: marker,
|
||||
}
|
||||
var resp *qs.ListMultipartUploadsOutput
|
||||
|
Loading…
Reference in New Issue
Block a user