Commit 5e93ab86 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix a bug in broadcasting.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2307 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6a9d16cd
......@@ -295,6 +295,7 @@ class SQLDict(RAMDict):
# Broadcast messages must be distributed into all nodes.
uid = line.uid
activity_tool.SQLDict_assignMessage(processing_node=1, uid=[uid])
if node_count > 1:
for node in range(2, node_count+1):
activity_tool.SQLDict_writeMessage( path = path,
method_id = line.method_id,
......
......@@ -220,6 +220,7 @@ class SQLQueue(RAMQueue):
if broadcast:
# Broadcast messages must be distributed into all nodes.
activity_tool.SQLQueue_assignMessage(processing_node=1, uid=uid)
if node_count > 1:
for node in range(2, node_count+1):
activity_tool.SQLQueue_writeMessage( path = line.path,
method_id = line.method_id,
......
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