[Neo-report] r2239 gregory - /trunk/neo/master/handlers/storage.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Aug 27 17:47:26 CEST 2010
Author: gregory
Date: Fri Aug 27 17:47:26 2010
New Revision: 2239
Log:
Use lock() provided by the transaction manager.
Modified:
trunk/neo/master/handlers/storage.py
Modified: trunk/neo/master/handlers/storage.py
==============================================================================
--- trunk/neo/master/handlers/storage.py [iso-8859-1] (original)
+++ trunk/neo/master/handlers/storage.py [iso-8859-1] Fri Aug 27 17:47:26 2010
@@ -68,10 +68,8 @@ class StorageServiceHandler(BaseServiceH
raise ProtocolError('TID too big')
# transaction locked on this storage node
- t = tm[tid]
- if not t.lock(uuid):
- return
- self._afterLock(tid)
+ if tm.lock(tid, uuid):
+ self._afterLock(tid)
def _afterLock(self, tid):
# I have received all the lock answers now:
More information about the Neo-report
mailing list