Revert "Delete parts when removing Swift multipart objects"

This reverts commit 3c1588527d.
This commit is contained in:
Andrew Gaul 2015-12-08 10:08:22 +08:00
parent 0fb1b459a6
commit 4abd5dd16f
2 changed files with 1 additions and 6 deletions

View File

@ -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

View File

@ -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);
}