Use last object as marker if S3 service does not return the marker
parent
dcd88fa0d2
commit
671b9c5002
|
@ -690,7 +690,11 @@ func runBucketList(thread_num int, stats *Stats) {
|
|||
stats.updateIntervals(thread_num)
|
||||
|
||||
if *p.IsTruncated {
|
||||
marker = *p.NextMarker
|
||||
if p.NextMarker != nil {
|
||||
marker = *p.NextMarker
|
||||
} else {
|
||||
marker = *p.Contents[len(p.Contents)-1].Key
|
||||
}
|
||||
} else {
|
||||
marker = ""
|
||||
bucket_num = rand.Int63() % bucket_count
|
||||
|
|
Loading…
Reference in New Issue