mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvmdbusd: Remove TODO on concurrent access to properties
As the code now uses a single thread to handle all changes to the dbus model we no longer need to handle this potential race condition.
This commit is contained in:
parent
37f05ccab1
commit
1d52090953
@ -159,10 +159,7 @@ class AutomatedProperties(dbus.service.Object):
|
||||
cfg.om.lookup_update(self, new_id[0], new_id[1])
|
||||
|
||||
# Grab the properties values, then replace the state of the object
|
||||
# and retrieve the new values
|
||||
# TODO: We need to add locking to prevent concurrent access to the
|
||||
# properties so that a client is not accessing while we are
|
||||
# replacing.
|
||||
# and retrieve the new values.
|
||||
o_prop = get_properties(self)
|
||||
self.state = new_state
|
||||
n_prop = get_properties(self)
|
||||
|
Loading…
Reference in New Issue
Block a user