cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject git commit: updated refs/heads/4.3 to 1dc784e
Date Thu, 02 Jan 2014 23:14:06 GMT
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 <kelveny@gmail.com>
Authored: Thu Jan 2 15:13:00 2014 -0800
Committer: Kelven Yang <kelveny@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());


Mime
View raw message