Commit 628a5621 authored by Anael Beutot's avatar Anael Beutot
Browse files

Changed handler for volume export.

parent 9efcdff8
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -547,12 +547,8 @@ class Handler(HostHandler):

        try:
            job = self.main.job_manager.create(ExportVolume, volume, raddr, rport)
            # we don't run the job in a background thread thus exceptions are
            # sent to the sjRPC
            job.start_current()
            # otherwise we would do
            # job.start()
            # job.join()
            job.start()
            job.wait()
        except Exception:
            logger.exception('Error while exporting volume')
            raise