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,9 +68,7 @@ class StorageServiceHandler(BaseServiceHandler): ...@@ -68,9 +68,7 @@ class StorageServiceHandler(BaseServiceHandler):
raise ProtocolError('TID too big') raise ProtocolError('TID too big')
# transaction locked on this storage node # transaction locked on this storage node
t = tm[tid] if tm.lock(tid, uuid):
if not t.lock(uuid):
return
self._afterLock(tid) self._afterLock(tid)
def _afterLock(self, tid): def _afterLock(self, tid):
......
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