mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
qemu: Remove compiled out localhost migration support
Pretty sure this would deadlock now that we have proper locking, so remove the code.
This commit is contained in:
parent
030db0c2ec
commit
2f5115627b
@ -6288,20 +6288,8 @@ qemudDomainMigratePrepare2 (virConnectPtr dconn,
|
||||
/* Target domain name, maybe renamed. */
|
||||
dname = dname ? dname : def->name;
|
||||
|
||||
#if 1
|
||||
/* Ensure the name and UUID don't already exist in an active VM */
|
||||
vm = virDomainFindByUUID(&driver->domains, def->uuid);
|
||||
#else
|
||||
/* For TESTING ONLY you can change #if 1 -> #if 0 above and use
|
||||
* this code which lets you do localhost migrations. You must still
|
||||
* supply a fresh 'dname' but this code assigns a random UUID.
|
||||
*/
|
||||
if (virUUIDGenerate (def->uuid) == -1) {
|
||||
qemudReportError (dconn, NULL, NULL, VIR_ERR_OPERATION_FAILED,
|
||||
_("could not generate random UUID"));
|
||||
goto cleanup;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!vm) vm = virDomainFindByName(&driver->domains, dname);
|
||||
if (vm) {
|
||||
|
Loading…
Reference in New Issue
Block a user