From 7575a0366379c2e5bc175e4a2c14dee09fdc2540 Mon Sep 17 00:00:00 2001 From: abhishek Date: Tue, 16 Nov 2010 16:11:55 -0800 Subject: [PATCH] bug 6861: we were setting the account cleanup flag incorrectly, even for a vol which was never attached to a vm. Fixing the same status 6861: resolved fixed --- server/src/com/cloud/user/AccountManagerImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/com/cloud/user/AccountManagerImpl.java b/server/src/com/cloud/user/AccountManagerImpl.java index d7786b82dd6..4a22bedd11e 100755 --- a/server/src/com/cloud/user/AccountManagerImpl.java +++ b/server/src/com/cloud/user/AccountManagerImpl.java @@ -842,9 +842,9 @@ public class AccountManagerImpl implements AccountManager, AccountService { // Mark the account's volumes as destroyed List volumes = _volumeDao.findDetachedByAccount(accountId); for (VolumeVO volume : volumes) { - if(volume.getPoolId()==null){ - accountCleanupNeeded = true; - } +// if(volume.getPoolId()==null){ +// accountCleanupNeeded = true; +// } _storageMgr.destroyVolume(volume); }