]> git.proxmox.com Git - pve-cluster.git/commit - data/PVE/Cluster.pm
add function to lock a domain
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Sep 2015 15:50:05 +0000 (17:50 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 26 Sep 2015 08:29:27 +0000 (10:29 +0200)
commit7889770710447a1a578db9f9fc8b6b6b12983359
treeae412e245efe5ea4411af46195d8503b93a384fc
parent0c28ee2d09ae2c13b156ca69d8c7d37b324ac3f4
add function to lock a domain

This can be used to execute code on an 'action domain' basis.
E.g.: if there are actions that cannot be run simultaneously even if
they, for example, don't access a common file and maybe also spread
across different packages we can now secure the consistence of said
actions on an 'action domain' basis.

The need to use a dirty hack like cfs_lock_storage with some
arbitrary storage name becomes obsolete. Also the code behaviour
and meaning becomes clearer.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/Cluster.pm