mirror of https://github.com/apache/jclouds.git
Remove listed multipart parts in abort
Previously we unconditionally removed all possible part names.
This commit is contained in:
parent
040df11d3f
commit
7a1c3a7b06
|
@ -789,8 +789,9 @@ public final class LocalBlobStore implements BlobStore {
|
|||
|
||||
@Override
|
||||
public void abortMultipartUpload(MultipartUpload mpu) {
|
||||
for (int i = 1; i <= 10 * 1000; ++i) {
|
||||
storageStrategy.removeBlob(mpu.containerName(), mpu.blobName() + "-" + i);
|
||||
List<MultipartPart> parts = listMultipartUpload(mpu);
|
||||
for (MultipartPart part : parts) {
|
||||
removeBlob(mpu.containerName(), mpu.blobName() + "-" + part.partNumber());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue