CLOUDSTACK-5726: Using runtime discovered dao (in AsyncJobManagerImpl.submitAsyncJob) to persist record has a problem to locate the right DAO instance, it causes corrupted field value be stored in database. Put in a work-around fix first to always initialize record fields in all cases

This commit is contained in:
Kelven Yang 2014-01-02 15:13:00 -08:00
parent 832c8e4728
commit 69f49839d3

View File

@ -241,6 +241,8 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
if (resultObject != null) {
job.setResult(resultObject);
} else {
job.setResult(null);
}
job.setLastUpdated(DateUtil.currentGMTTime());