From: Dietmar Maurer Date: Wed, 19 Oct 2011 08:01:34 +0000 (+0200) Subject: another fix for duplicate VM check X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e6be001a807de2bae59fd1e0418250fcc0f7bbc3;p=pve-cluster.git another fix for duplicate VM check --- diff --git a/data/src/memdb.c b/data/src/memdb.c index 463ff1b..e3323bd 100644 --- a/data/src/memdb.c +++ b/data/src/memdb.c @@ -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;