mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
S3 blob storage gateway: deleting an index named x destroys data for any index with name beginning with x, closes #2.
This commit is contained in:
parent
b0ef8c657d
commit
2cbf07e5b6
@ -100,7 +100,7 @@ public class S3BlobStore extends AbstractComponent implements BlobStore {
|
||||
if (prevListing != null) {
|
||||
list = client.listNextBatchOfObjects(prevListing);
|
||||
} else {
|
||||
list = client.listObjects(bucket, path.buildAsString("/"));
|
||||
list = client.listObjects(bucket, path.buildAsString("/") + "/");
|
||||
}
|
||||
for (S3ObjectSummary summary : list.getObjectSummaries()) {
|
||||
client.deleteObject(summary.getBucketName(), summary.getKey());
|
||||
|
Loading…
x
Reference in New Issue
Block a user