]> git.proxmox.com Git - pve-cluster.git/commitdiff
another fix for duplicate VM check
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Oct 2011 08:01:34 +0000 (10:01 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Oct 2011 08:01:34 +0000 (10:01 +0200)
data/src/memdb.c

index 463ff1bece6727a2d4a5f41e70098c3625ecdf1f..e3323bd33afccc6b0e3120b9bf3f3b36807b03ef 100644 (file)
@@ -1112,7 +1112,7 @@ memdb_rename(
        from_node = path_contain_vm_config(from, &from_vmtype, &from_vmid);
 
        if (from_te->type == DT_REG && (nodename = path_contain_vm_config(to, &vmtype, &vmid))) {
-               if (vmlist_vm_exists(vmid)) {
+               if (vmlist_different_vm_exists(vmtype, vmid, nodename)) {
                        if (!(from_node && vmid == from_vmid)) {
                                ret = -EEXIST;
                                goto ret;