fixed transaction usage

This commit is contained in:
anthony 2011-04-13 19:34:35 -07:00
parent fede78bea8
commit 3f4c5225dd
2 changed files with 0 additions and 4 deletions

View File

@ -315,8 +315,6 @@ public class AlertManagerImpl implements AlertManager {
} catch (Exception ex) {
txn.rollback();
s_logger.error("Unable to start transaction for capacity update");
}finally {
txn.close();
}
}

View File

@ -1920,7 +1920,6 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
// set the pool state to prepare for maintenance
primaryStorage.setStatus(StoragePoolStatus.PrepareForMaintenance);
_storagePoolDao.update(primaryStorageId, primaryStorage);
txn.commit();
// check to see if other ps exist
// if they do, then we can migrate over the system vms to them
@ -1962,7 +1961,6 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
}
txn.commit();
txn.close();
// 4. Process the queue
List<StoragePoolWorkVO> pendingWork = _storagePoolWorkDao.listPendingWorkForPrepareForMaintenanceByPoolId(primaryStorageId);