Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always sort WAL segments on restore point calc
Some S3 implementations, like Storj, don't return objects in order unlike the real S3 API. It's against AWS documentation but they have their reasons not to pre-sort them. Since there's only one place where the order matters and we're going to iterate all of them anyway and there's a sort implementation for a WAL segment slice we can do just that to add compatibility without any meaningful performance hit. This same sorting is already done when listing snapshots. Fixes benbjohnson#535
- Loading branch information