Commit 30e45c93 authored by Vincent Pelletier's avatar Vincent Pelletier

Actually only start newly-running nodes, getting rid of an XXX.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2375 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 939df4b0
...@@ -143,11 +143,8 @@ class AdministrationHandler(MasterHandler): ...@@ -143,11 +143,8 @@ class AdministrationHandler(MasterHandler):
new_cells = pt.addNode(node) new_cells = pt.addNode(node)
cell_list.extend(new_cells) cell_list.extend(new_cells)
node.setRunning() node.setRunning()
node.getConnection().notify(Packets.StartOperation())
app.broadcastNodesInformation(node_list) app.broadcastNodesInformation(node_list)
# start nodes
# XXX: should start storages only when RUNNING
for node in self.app.nm.getIdentifiedList(pool_set=uuid_set):
node.notify(Packets.StartOperation())
# broadcast the new partition table # broadcast the new partition table
app.broadcastPartitionChanges(cell_list) app.broadcastPartitionChanges(cell_list)
conn.answer(Errors.Ack('Nodes added: %s' % (uuids, ))) conn.answer(Errors.Ack('Nodes added: %s' % (uuids, )))
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