LUGetTags: Acquire locks in shared mode
authorMichael Hanselmann <hansmi@google.com>
Fri, 1 Oct 2010 14:59:41 +0000 (16:59 +0200)
committerMichael Hanselmann <hansmi@google.com>
Tue, 5 Oct 2010 14:59:06 +0000 (16:59 +0200)
commit60db933622f1ef44165bd34405f7a68d5bb25426
treec21b113dfa29806e935eb4b72cd9de807d60188d
parentf1b083ce396bf55a2155ac679a441022264ae59d
LUGetTags: Acquire locks in shared mode

Retrieving tags can be done while the lock is shared. Only writing
needs to be exclusive.

Also add a FIXME for cluster tags, where the code currently doesn't
use any locks except the config lock.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py