Revision 04e1bfaf lib/locking.py
b/lib/locking.py | ||
---|---|---|
670 | 670 |
# If you need more than one node, or more than one instance, acquire them at |
671 | 671 |
# the same time. |
672 | 672 |
LEVEL_CLUSTER = 0 |
673 |
LEVEL_NODE = 1
|
|
674 |
LEVEL_INSTANCE = 2
|
|
673 |
LEVEL_INSTANCE = 1
|
|
674 |
LEVEL_NODE = 2
|
|
675 | 675 |
|
676 | 676 |
LEVELS = [LEVEL_CLUSTER, |
677 |
LEVEL_NODE,
|
|
678 |
LEVEL_INSTANCE]
|
|
677 |
LEVEL_INSTANCE,
|
|
678 |
LEVEL_NODE]
|
|
679 | 679 |
|
680 | 680 |
# Lock levels which are modifiable |
681 | 681 |
LEVELS_MOD = [LEVEL_NODE, LEVEL_INSTANCE] |
Also available in: Unified diff