Skip to contentSkip to conversation

master - lvmdbusd: Remove TODO on concurrent access to properties

PATCH tasleson 1 participant 1 message Nov 30, 2016

lore
Share & tools
lore

tasleson

author
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=1d520909534e1a4e1adf2513a5061adfe631d6af
Commit:        1d520909534e1a4e1adf2513a5061adfe631d6af
Parent:        37f05ccab1a576bdd71be1f4f80ab6f621042d71
Author:        Tony Asleson <[email protected]>
AuthorDate:    Wed Nov 30 13:03:25 2016 -0600
Committer:     Tony Asleson <[email protected]>
CommitterDate: Wed Nov 30 15:59:06 2016 -0600

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.

---
 daemons/lvmdbusd/automatedproperties.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
daemons/lvmdbusd/automatedproperties.py +1 -4
index 5e14d61..7b22d19 100644
@@ -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)