mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
s3: fix ListObject if more than 10000 objects
This commit is contained in:
parent
a8b0f8864d
commit
6e999f1176
|
@ -220,12 +220,16 @@ func (s3a *S3ApiServer) doListFilerEntries(client filer_pb.SeaweedFilerClient, d
|
||||||
err = subErr
|
err = subErr
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
counter += subCounter
|
||||||
isTruncated = isTruncated || subIsTruncated
|
isTruncated = isTruncated || subIsTruncated
|
||||||
maxKeys -= subCounter
|
maxKeys -= subCounter
|
||||||
nextMarker = subDir + "/" + subNextMarker
|
nextMarker = subDir + "/" + subNextMarker
|
||||||
// finished processing this sub directory
|
// finished processing this sub directory
|
||||||
marker = subDir
|
marker = subDir
|
||||||
}
|
}
|
||||||
|
if maxKeys <= 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// now marker is also a direct child of dir
|
// now marker is also a direct child of dir
|
||||||
request := &filer_pb.ListEntriesRequest{
|
request := &filer_pb.ListEntriesRequest{
|
||||||
|
|
Loading…
Reference in a new issue