Skip to content

Commit 376078e

Browse files
author
Anthony Xu
committed
Revert "disble XS event, found there is an issue when event.from is called by multiple thread."
This reverts commit 8696f38.
1 parent 2239eb4 commit 376078e

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎plugins/hypervisors/xen/src/org/apache/cloudstack/hypervisor/xenserver/XenServerResourceNewBase.java‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@
3131
import com.xensource.xenapi.VM;
3232

3333
import com.xensource.xenapi.Event;
34-
/*
3534
import com.xensource.xenapi.Task;
3635
import com.xensource.xenapi.Types;
37-
import java.util.concurrent.TimeoutException;
38-
*/
3936
import org.apache.xmlrpc.XmlRpcException;
37+
import java.util.concurrent.TimeoutException;
38+
4039

4140
import com.cloud.agent.api.Answer;
4241
import com.cloud.agent.api.ClusterSyncAnswer;
@@ -102,7 +101,7 @@ public StartupCommand[] initialize() throws IllegalArgumentException {
102101
return cmds;
103102
}
104103

105-
/*
104+
106105
protected void waitForTask(Connection c, Task task, long pollInterval, long timeout) throws XenAPIException, XmlRpcException, TimeoutException {
107106
long beginTime = System.currentTimeMillis();
108107
if (s_logger.isTraceEnabled()) {
@@ -155,7 +154,7 @@ protected void waitForTask(Connection c, Task task, long pollInterval, long time
155154
}
156155
}
157156

158-
*/
157+
159158

160159
@Override
161160
protected Answer execute(final ClusterSyncCommand cmd) {

0 commit comments

Comments
 (0)