提交 e05ed216 编写于 作者: J Jiri Denemark

qemu_migration: Rename 'offline' variable in SrcPerformPeer2Peer

The variable is used to store the offline migration capability of the
destination daemon. Let's call it 'dstOffline' so that we can later use
'offline' to indicate whether we were asked to do offline migration.
Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
上级 cb7a4ac4
...@@ -4399,7 +4399,7 @@ qemuMigrationSrcPerformPeer2Peer(virQEMUDriverPtr driver, ...@@ -4399,7 +4399,7 @@ qemuMigrationSrcPerformPeer2Peer(virQEMUDriverPtr driver,
virConnectPtr dconn = NULL; virConnectPtr dconn = NULL;
bool p2p; bool p2p;
virErrorPtr orig_err = NULL; virErrorPtr orig_err = NULL;
bool offline = false; bool dstOffline = false;
virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver); virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
bool useParams; bool useParams;
...@@ -4469,7 +4469,7 @@ qemuMigrationSrcPerformPeer2Peer(virQEMUDriverPtr driver, ...@@ -4469,7 +4469,7 @@ qemuMigrationSrcPerformPeer2Peer(virQEMUDriverPtr driver,
useParams = VIR_DRV_SUPPORTS_FEATURE(dconn->driver, dconn, useParams = VIR_DRV_SUPPORTS_FEATURE(dconn->driver, dconn,
VIR_DRV_FEATURE_MIGRATION_PARAMS); VIR_DRV_FEATURE_MIGRATION_PARAMS);
if (flags & VIR_MIGRATE_OFFLINE) if (flags & VIR_MIGRATE_OFFLINE)
offline = VIR_DRV_SUPPORTS_FEATURE(dconn->driver, dconn, dstOffline = VIR_DRV_SUPPORTS_FEATURE(dconn->driver, dconn,
VIR_DRV_FEATURE_MIGRATION_OFFLINE); VIR_DRV_FEATURE_MIGRATION_OFFLINE);
qemuDomainObjExitRemote(vm); qemuDomainObjExitRemote(vm);
...@@ -4488,7 +4488,7 @@ qemuMigrationSrcPerformPeer2Peer(virQEMUDriverPtr driver, ...@@ -4488,7 +4488,7 @@ qemuMigrationSrcPerformPeer2Peer(virQEMUDriverPtr driver,
goto cleanup; goto cleanup;
} }
if (flags & VIR_MIGRATE_OFFLINE && !offline) { if (flags & VIR_MIGRATE_OFFLINE && !dstOffline) {
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
_("offline migration is not supported by " _("offline migration is not supported by "
"the destination host")); "the destination host"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册