Commit 47c4926f authored by Vincent Pelletier's avatar Vincent Pelletier

Add XXX near lock release which doesn't check who owns the lock.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1610 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1b412591
...@@ -62,6 +62,7 @@ class ClientOperationHandler(BaseClientAndStorageOperationHandler): ...@@ -62,6 +62,7 @@ class ClientOperationHandler(BaseClientAndStorageOperationHandler):
for o in t.getObjectList(): for o in t.getObjectList():
oid = o[0] oid = o[0]
# TODO: remove try..except: pass # TODO: remove try..except: pass
# XXX: we release locks without checking if tid owns them
try: try:
del app.store_lock_dict[oid] del app.store_lock_dict[oid]
del app.load_lock_dict[oid] del app.load_lock_dict[oid]
...@@ -95,6 +96,7 @@ class ClientOperationHandler(BaseClientAndStorageOperationHandler): ...@@ -95,6 +96,7 @@ class ClientOperationHandler(BaseClientAndStorageOperationHandler):
for o in object_list: for o in object_list:
oid = o[0] oid = o[0]
# TODO: remove try..except: pass # TODO: remove try..except: pass
# XXX: we release locks without checking if tid owns them
try: try:
del app.load_lock_dict[oid] del app.load_lock_dict[oid]
except KeyError: except KeyError:
......
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