Commit 132ea3b5 authored by Vincent Pelletier's avatar Vincent Pelletier

Explicitely lock tables before doing message reservation queries, to avoid deadlocks.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19538 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 41672538
...@@ -12,6 +12,8 @@ to_date ...@@ -12,6 +12,8 @@ to_date
limit limit
group_method_id group_method_id
order_validation_text</params> order_validation_text</params>
LOCK TABLE message WRITE
<dtml-var sql_delimiter>
UPDATE UPDATE
message message
SET SET
......
...@@ -11,6 +11,8 @@ class_file: ...@@ -11,6 +11,8 @@ class_file:
to_date to_date
limit limit
</params> </params>
LOCK TABLE message_queue WRITE
<dtml-var sql_delimiter>
UPDATE UPDATE
message_queue message_queue
SET SET
......
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