Fix some cut-and-paste error in migration code

* src/qemu/qemu_driver.c: in qemudDomainMigratePerform call
  doPeer2PeerMigrate for VIR_MIGRATE_PEER2PEER.
This commit is contained in:
Paolo Bonzini 2009-11-05 18:06:31 +01:00 committed by Daniel Veillard
parent 91b009cde4
commit 7d10811312

View File

@ -6794,9 +6794,9 @@ qemudDomainMigratePerform (virDomainPtr dom,
event = NULL;
}
if ((flags & VIR_MIGRATE_TUNNELLED)) {
if ((flags & (VIR_MIGRATE_TUNNELLED | VIR_MIGRATE_PEER2PEER))) {
if (doPeer2PeerMigrate(dom, vm, uri, flags, dname, resource) < 0)
/* doTunnelMigrate already set the error, so just get out */
/* doPeer2PeerMigrate already set the error, so just get out */
goto cleanup;
} else {
if (doNativeMigrate(dom, vm, uri, flags, dname, resource) < 0)