cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject [2/2] git commit: updated refs/heads/master to 923deba
Date Tue, 11 Jun 2013 00:52:39 GMT
Wire CreateSnapshotCmd with @Inject support in SnapshotSchedulerImpl


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/923deba8
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/923deba8
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/923deba8

Branch: refs/heads/master
Commit: 923deba89b8c6624f7b108062a31550b19a9b08b
Parents: f38c4e9
Author: Kelven Yang <kelveny@gmail.com>
Authored: Mon Jun 10 17:52:14 2013 -0700
Committer: Kelven Yang <kelveny@gmail.com>
Committed: Mon Jun 10 17:52:14 2013 -0700

----------------------------------------------------------------------
 server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/923deba8/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java
index 5af0af0..7170a68 100644
--- a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java
+++ b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java
@@ -56,6 +56,7 @@ import com.cloud.utils.DateUtil;
 import com.cloud.utils.DateUtil.IntervalType;
 import com.cloud.utils.NumbersUtil;
 
+import com.cloud.utils.component.ComponentContext;
 import com.cloud.utils.component.ManagerBase;
 import com.cloud.utils.concurrency.TestClock;
 import com.cloud.utils.db.DB;
@@ -246,6 +247,7 @@ public class SnapshotSchedulerImpl extends ManagerBase implements SnapshotSchedu
                 params.put("ctxStartEventId", String.valueOf(eventId));
 
                 CreateSnapshotCmd cmd = new CreateSnapshotCmd();
+                ComponentContext.inject(cmd);
                 ApiDispatcher.getInstance().dispatchCreateCmd(cmd, params);
                 params.put("id", ""+cmd.getEntityId());
                 params.put("ctxStartEventId", "1");


Mime
View raw message