]> git.proxmox.com Git - pve-cluster.git/commitdiff
Fix #1199: pmxcfs: vmlist cache update condition in rename
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 9 Nov 2016 08:15:56 +0000 (09:15 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 29 Nov 2016 05:25:09 +0000 (06:25 +0100)
rename() wrongly used the vmid filled in by
path_contain_vm_config() as a condition for whether to
update the vmlist cache rather than the returned nodename.

This caused a rename in any folder of a file whose name
was a number followed by '.conf' to remove the corresponding
vmid from the vmlist cache.

data/src/memdb.c

index f35257badb15c9a2937b37e45a3c34bd6688fff3..e10aac433d2c13d0ae1d5687abcae89fd021f277 100644 (file)
@@ -1226,7 +1226,7 @@ memdb_rename(
 
        if (new->type == DT_REG) {
 
-               if (from_vmid)
+               if (from_node)
                        vmlist_delete_vm(from_vmid);
 
                if (nodename)