Change in vdsm[master]: virt: migration: rename cancel->stop method

fromani at redhat.com fromani at redhat.com
Thu Sep 18 06:58:04 UTC 2014


Francesco Romani has uploaded a new change for review.

Change subject: virt: migration: rename cancel->stop method
......................................................................

virt: migration: rename cancel->stop method

This patch renames the cancel() method
of the migration.DowntimeThread to stop() in order
to make it consistent with migration.MonitorThread.

Besides that there are no changes in behaviour.

Change-Id: Ia938ae0fa5bf3ddd16ffc992299566b618ea4677
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M vdsm/virt/migration.py
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/30/33030/1

diff --git a/vdsm/virt/migration.py b/vdsm/virt/migration.py
index 69bea3a..c4fddef 100644
--- a/vdsm/virt/migration.py
+++ b/vdsm/virt/migration.py
@@ -317,7 +317,7 @@
                 try:
                     self._perform_migration(duri, muri)
                 finally:
-                    t.cancel()
+                    t.stop()
 
     def _perform_migration(self, duri, muri):
         if self._vm.hasSpice and self._vm.conf.get('clientIp'):
@@ -385,8 +385,8 @@
 
         self._vm.log.debug('migration downtime thread exiting')
 
-    def cancel(self):
-        self._vm.log.debug('canceling migration downtime thread')
+    def stop(self):
+        self._vm.log.debug('stopping migration downtime thread')
         self._stop.set()
 
 


-- 
To view, visit http://gerrit.ovirt.org/33030
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia938ae0fa5bf3ddd16ffc992299566b618ea4677
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>


More information about the vdsm-patches mailing list