]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Remove compiled out localhost migration support
authorCole Robinson <crobinso@redhat.com>
Mon, 2 Nov 2009 18:49:44 +0000 (13:49 -0500)
committerCole Robinson <crobinso@redhat.com>
Tue, 3 Nov 2009 21:46:54 +0000 (16:46 -0500)
Pretty sure this would deadlock now that we have proper locking, so
remove the code.

src/qemu/qemu_driver.c

index 869267615815f3e9d15151e3e89e66e6b6333ca7..5ff7e9405d37ebbacc5730ca327311a4b393a78e 100644 (file)
@@ -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) {