[Neo-report] r2375 vincent - /trunk/neo/master/handlers/administration.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Oct 30 01:03:32 CEST 2010


Author: vincent
Date: Sat Oct 30 01:03:32 2010
New Revision: 2375

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

Modified:
    trunk/neo/master/handlers/administration.py

Modified: trunk/neo/master/handlers/administration.py
==============================================================================
--- trunk/neo/master/handlers/administration.py [iso-8859-1] (original)
+++ trunk/neo/master/handlers/administration.py [iso-8859-1] Sat Oct 30 01:03:32 2010
@@ -143,11 +143,8 @@ class AdministrationHandler(MasterHandle
             new_cells = pt.addNode(node)
             cell_list.extend(new_cells)
             node.setRunning()
+            node.getConnection().notify(Packets.StartOperation())
         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
         app.broadcastPartitionChanges(cell_list)
         conn.answer(Errors.Ack('Nodes added: %s' % (uuids, )))





More information about the Neo-report mailing list