mirror of https://github.com/apache/jclouds.git
Revert "Delete parts when removing Swift multipart objects"
This reverts commit 3c1588527d
.
This commit is contained in:
parent
0fb1b459a6
commit
4abd5dd16f
|
@ -344,8 +344,7 @@ public class RegionScopedSwiftBlobStore implements BlobStore {
|
|||
|
||||
@Override
|
||||
public void removeBlob(String container, String name) {
|
||||
// use SLO API to delete blob regardless of whether its a single- or multi-part object
|
||||
api.getStaticLargeObjectApi(regionId, container).delete(name);
|
||||
api.getObjectApi(regionId, container).delete(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -943,10 +943,6 @@ public class BaseBlobIntegrationTest extends BaseBlobStoreIntegrationTest {
|
|||
assertThat(ByteStreams2.toByteArrayAndClose(newBlob.getPayload().openStream())).isEqualTo(byteSource.read());
|
||||
checkContentMetadata(newBlob);
|
||||
checkUserMetadata(newBlob.getMetadata().getUserMetadata(), blob.getMetadata().getUserMetadata());
|
||||
|
||||
// ensure that deleting multi-part manifest deletes any user-visible parts
|
||||
blobStore.removeBlob(container, name);
|
||||
assertThat(blobStore.list(container)).isEmpty();
|
||||
} finally {
|
||||
returnContainer(container);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue