Handle list marker after last key in transient-nio2

Found by s3-tests.  References #697.
pull/733/head
Andrew Gaul 2024-11-23 17:22:47 -08:00
rodzic e598a835ee
commit fc0f31fc01
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -193,12 +193,17 @@ public final class Nio2BlobStore extends BaseBlobStore {
listHelper(set, container, dirPrefix, prefix, delimiter);
var sorted = set.build();
if (options.getMarker() != null) {
var found = false;
for (var blob : sorted) {
if (blob.getName().compareTo(options.getMarker()) > 0) {
sorted = sorted.tailSet(blob);
found = true;
break;
}
}
if (!found) {
sorted = ImmutableSortedSet.of();
}
}
String marker = null;
if (options.getMaxResults() != null) {