Skip to content

Conversation

@martinprikryl
Copy link
Contributor

Contrary to AWS, Backblaze adds IsTruncated (and others) only after the CommonPrefixes and Contents. It's pagination is 1000, what is a multiple of libs3's MAX_COMMON_PREFIXES. So if you have prefixes-only listing, you get 125 callbacks with 32 commonPrefixes in each. None of them will have valid isTruncated yet. And in listBucketCompleteCallback, where isTruncated is finally known, both contentsCount and commonPrefixesCount will be zero, and the callback will not be triggered.

Contrary to AWS, Backblaze adds `IsTruncated` (and others) only after the `CommonPrefixes` and `Contents`. It's pagination is 1000, what is a multiple of libs3's `MAX_COMMON_PREFIXES`. So if you have prefixes-only listing, you get 125 callbacks with 32 `commonPrefixes` in each. None of them will have valid `isTruncated` yet. And in `listBucketCompleteCallback`, where `isTruncated` is finally known, both `contentsCount` and `commonPrefixesCount` will be zero, and the callback will not be triggered.
@martinprikryl
Copy link
Contributor Author

Note that there's is probably a similar problem in multipart.c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant