]> git.proxmox.com Git - pve-cluster.git/commitdiff
fix expression to avoid duplicate vm ids
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Oct 2011 07:19:04 +0000 (09:19 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Oct 2011 07:19:04 +0000 (09:19 +0200)
data/src/memdb.c

index 2ca50104542c524e5ca50aa7652ad1f4612b8138..463ff1bece6727a2d4a5f41e70098c3625ecdf1f 100644 (file)
@@ -1113,7 +1113,7 @@ memdb_rename(
 
        if (from_te->type == DT_REG && (nodename = path_contain_vm_config(to, &vmtype, &vmid))) {
                if (vmlist_vm_exists(vmid)) {
-                       if (from_node && (vmid != from_vmid)) {
+                       if (!(from_node && vmid == from_vmid)) {
                                ret = -EEXIST;
                                goto ret;
                        }