From a165309b89387d024ea362898a30c7990e79b1ab Mon Sep 17 00:00:00 2001 From: Mike Tutkowski Date: Mon, 24 Nov 2014 09:44:06 -0700 Subject: [PATCH] Allow infrastructure to handle delete of volume from DB (cherry picked from commit 6602ad71ac97fb1875131f41bb5f92ff1e3a1c7b) Signed-off-by: Rohit Yadav --- .../datastore/driver/SolidfirePrimaryDataStoreDriver.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datastore/driver/SolidfirePrimaryDataStoreDriver.java b/plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datastore/driver/SolidfirePrimaryDataStoreDriver.java index e69534b7946..6a180ad1f55 100644 --- a/plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datastore/driver/SolidfirePrimaryDataStoreDriver.java +++ b/plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datastore/driver/SolidfirePrimaryDataStoreDriver.java @@ -790,8 +790,6 @@ public class SolidfirePrimaryDataStoreDriver implements PrimaryDataStoreDriver { SolidFireUtil.SolidFireVolume sfVolume = deleteSolidFireVolume(volumeInfo, sfConnection); - _volumeDao.deleteVolumesByInstance(volumeInfo.getId()); - // if (!sfAccountHasVolume(sfAccountId, sfConnection)) { // // delete the account from the SolidFire SAN // deleteSolidFireAccount(sfAccountId, sfConnection);