Revert "Revert change to ManagedContextTimerTask to unblock DB upgrade"

This reverts commit 2799ee3d4fb86f6db856985879a41e5dfc63ccc6.


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

Branch: refs/heads/master
Commit: c25b58356b72ccd3f8e67b38ee5160787dcdec06
Parents: 63e46ad
Author: Darren Shepherd <[email protected]>
Authored: Wed Oct 23 23:41:00 2013 -0700
Committer: Darren Shepherd <[email protected]>
Committed: Wed Oct 23 23:41:00 2013 -0700

----------------------------------------------------------------------
 .../src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c25b5835/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java
----------------------------------------------------------------------
diff --git 
a/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java 
b/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java
index 69bde19..c36b3a8 100644
--- a/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java
+++ b/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java
@@ -119,9 +119,9 @@ public class VmwareContextPool {
        }
        
        private TimerTask getTimerTask() {
-               return new TimerTask() {
+               return new ManagedContextTimerTask() {
             @Override
-            public void run() {
+            protected void runInContext() {
                                try {
                                        // doIdleCheck();
                                        

Reply via email to