kopia lustrzana https://github.com/gaul/s3proxy
Handle list marker after last key in transient-nio2
Found by s3-tests. References #697.pull/733/head
rodzic
e598a835ee
commit
fc0f31fc01
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue