提交 74798313 编写于 作者: D Daniel P. Berrange

Fix job type set in qemuMigrationPrepareDirect/PrepareTunnel

The qemuMigrationPrepareDirect/PrepareTunnel methods accidentally
set the domain job to  QEMU_JOB_MIGRATION_OUT when it should have
been  QEMU_JOB_MIGRATION_IN. This didn't have any ill-effect, but
it is none-the-less wrong.

* src/qemu/qemu_migration.c: Fix job type
上级 bd180de5
......@@ -1110,7 +1110,7 @@ qemuMigrationPrepareTunnel(struct qemud_driver *driver,
if (qemuDomainObjBeginJobWithDriver(driver, vm) < 0)
goto cleanup;
priv->jobActive = QEMU_JOB_MIGRATION_OUT;
priv->jobActive = QEMU_JOB_MIGRATION_IN;
/* Domain starts inactive, even if the domain XML had an id field. */
vm->def->id = -1;
......@@ -1345,7 +1345,7 @@ qemuMigrationPrepareDirect(struct qemud_driver *driver,
if (qemuDomainObjBeginJobWithDriver(driver, vm) < 0)
goto cleanup;
priv->jobActive = QEMU_JOB_MIGRATION_OUT;
priv->jobActive = QEMU_JOB_MIGRATION_IN;
/* Domain starts inactive, even if the domain XML had an id field. */
vm->def->id = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册