Commit 7b7d2f95 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use lock() provided by the transaction manager.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2239 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent c5e8de0a
......@@ -68,10 +68,8 @@ class StorageServiceHandler(BaseServiceHandler):
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment