]> git.proxmox.com Git - qemu-server.git/commit
Refactor update_config_nolock -> write_config
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 12 Feb 2016 10:14:40 +0000 (11:14 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 12 Feb 2016 11:14:52 +0000 (12:14 +0100)
commit63be43a947d976430c09dfa6911fecf7a7a1397e
treeec1ada9815b2bec92d8e6160fe7c8fd2f2eb30c8
parenta3683dfb031b5178b707a115b2a392cd3de52ee2
Refactor update_config_nolock -> write_config

The method update_config wrapped update_config_nolock
using lock_config, but to prevent update races the whole
"read config", "do something", "write config" flow was
always protected by lock_config anyway, and update_config
was never called.

Thus, we can safely drop update_config and rename
update_config_nolock to write_config like in PVE::LXC .
PVE/API2/Qemu.pm
PVE/CLI/qm.pm
PVE/QemuMigrate.pm
PVE/QemuServer.pm