Browse Source

s3: fix ListObject if more than 10000 objects

pull/2427/head
Chris Lu 3 years ago
parent
commit
6e999f1176
  1. 4
      weed/s3api/s3api_objects_list_handlers.go

4
weed/s3api/s3api_objects_list_handlers.go

@ -220,12 +220,16 @@ func (s3a *S3ApiServer) doListFilerEntries(client filer_pb.SeaweedFilerClient, d
err = subErr
return
}
counter += subCounter
isTruncated = isTruncated || subIsTruncated
maxKeys -= subCounter
nextMarker = subDir + "/" + subNextMarker
// finished processing this sub directory
marker = subDir
}
if maxKeys <= 0 {
return
}
// now marker is also a direct child of dir
request := &filer_pb.ListEntriesRequest{

Loading…
Cancel
Save