You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ke...@apache.org on 2014/01/03 00:14:06 UTC
git commit: updated refs/heads/4.3 to 1dc784e
Updated Branches:
refs/heads/4.3 88aefbf52 -> 1dc784ecd
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
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1dc784ec
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1dc784ec
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1dc784ec
Branch: refs/heads/4.3
Commit: 1dc784ecdb12b0d4f402c74941afa724faf7623e
Parents: 88aefbf
Author: Kelven Yang <ke...@gmail.com>
Authored: Thu Jan 2 15:13:00 2014 -0800
Committer: Kelven Yang <ke...@gmail.com>
Committed: Thu Jan 2 15:13:34 2014 -0800
----------------------------------------------------------------------
.../apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1dc784ec/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
----------------------------------------------------------------------
diff --git a/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java b/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
index 9a0c749..cf7da81 100644
--- a/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
+++ b/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
@@ -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());