bug 5147: we ensure that if the sp under maintenance is the only one in the cluster, we just stop the vms with no migration (base case)

This commit is contained in:
abhishek 2010-09-09 18:33:34 -07:00
parent e7c280214b
commit 8d38e230a5
1 changed files with 1 additions and 1 deletions

View File

@ -2009,7 +2009,7 @@ public class StorageManagerImpl implements StorageManager {
//if they dont, then just stop all vms on this one
count = _storagePoolDao.countBy(primaryStorage.getPodId(), Status.Up);
if(count == 1)
if(count == 0)
restart = false;
//2. Get a list of all the volumes within this storage pool