bug 10587: correctly use transaction

status 10587: resolved fixed
This commit is contained in:
anthony 2011-07-06 18:54:01 -07:00
parent e522ecb3a1
commit 4040b39fe1
1 changed files with 0 additions and 5 deletions

View File

@ -2038,9 +2038,6 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
boolean restart = true;
StoragePoolVO primaryStorage = null;
try {
Transaction txn = Transaction.currentTxn();
txn.start();
// 1. Get the primary storage record and perform validation check
primaryStorage = _storagePoolDao.lockRow(primaryStorageId, true);
@ -2097,8 +2094,6 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
}
}
txn.commit();
// 4. Process the queue
List<StoragePoolWorkVO> pendingWork = _storagePoolWorkDao.listPendingWorkForPrepareForMaintenanceByPoolId(primaryStorageId);