Skip to content
Permalink
Browse files

fix deleting bucket

  • Loading branch information...
chrislusf committed Nov 9, 2018
1 parent 70008b0 commit 2697d6a4fbdc9d9d6f739badcaecca90e666dd99
@@ -79,6 +79,13 @@ public static void main(String[] args) {
// test deletes
s3Client.deleteObject(bucketName, stringObjKeyName);


// delete bucket
String tmpBucket = "tmpbucket";
s3Client.createBucket(tmpBucket);
s3Client.putObject(tmpBucket, stringObjKeyName, stringContent);
s3Client.deleteBucket(tmpBucket);

} catch (AmazonServiceException e) {
// The call was transmitted successfully, but Amazon S3 couldn't process
// it, so it returned an error response.
@@ -42,7 +42,9 @@ func (v *Volume) Destroy() (err error) {
}
v.Close()
os.Remove(v.FileName() + ".dat")
err = v.nm.Destroy()
if v.nm!=nil{
err = v.nm.Destroy()
}
os.Remove(v.FileName() + ".cpd")
os.Remove(v.FileName() + ".cpx")
os.Remove(v.FileName() + ".ldb")

0 comments on commit 2697d6a

Please sign in to comment.
You can’t perform that action at this time.