Commit 701ebd1a authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed used feature not implemented in cc-node

parent ea1d6007
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -205,20 +205,7 @@ class MigrationJob(Job):
        watcher.register(source.conn, 'vol_export', pool, name, dest.ip, xferprop['port'])
        watcher.register(dest.conn, 'vol_import_wait', xferprop['id'])

        # Loop to poll status while job is running
        job_running = True
        while job_running:
            # Timeout to get transfered bytes and update status
            msgs = watcher.wait(timeout=10)
            if not msgs:
                _, percent = dest.proxy.vol_transfer_status(xferprop['id'])
                self.report('copy %s/%s: %s%% done' % (pool, name, percent))
            else:
                job_running = False
        self._func_cancel_xfer = None

        # Wait a little more for the second response if needed:
        msgs += watcher.wait(timeout=10)
        msgs = watcher.wait()

        # Compare checksum of two answers:
        checksums = []