[Neo-report] r2363 vincent - in /trunk/neo: storage/handlers/ tests/storage/
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 29 12:23:52 CEST 2010
Author: vincent
Date: Fri Oct 29 12:23:51 2010
New Revision: 2363
Log:
Fix a forgotten rename in r2359.
Also, fix associated unit test, which did not detect this error because
tested storage was not assigned any partition.
Modified:
trunk/neo/storage/handlers/initialization.py
trunk/neo/tests/storage/testInitializationHandler.py
Modified: trunk/neo/storage/handlers/initialization.py
==============================================================================
--- trunk/neo/storage/handlers/initialization.py [iso-8859-1] (original)
+++ trunk/neo/storage/handlers/initialization.py [iso-8859-1] Fri Oct 29 12:23:51 2010
@@ -45,7 +45,7 @@ class InitializationHandler(BaseMasterHa
for cell in pt.getCellList(offset):
cell_list.append((offset, cell.getUUID(), cell.getState()))
if cell.getUUID() == app.uuid:
- assigned_set.remove(offset)
+ unassigned_set.remove(offset)
# delete objects database
if unassigned_set:
logging.debug('drop data for partitions %r' % unassigned_set)
Modified: trunk/neo/tests/storage/testInitializationHandler.py
==============================================================================
--- trunk/neo/tests/storage/testInitializationHandler.py [iso-8859-1] (original)
+++ trunk/neo/tests/storage/testInitializationHandler.py [iso-8859-1] Fri Oct 29 12:23:51 2010
@@ -78,6 +78,7 @@ class StorageInitializationHandlerTests(
node_1 = self.getNewUUID()
node_2 = self.getNewUUID()
node_3 = self.getNewUUID()
+ self.app.uuid = node_1
# SN already know all nodes
self.app.nm.createStorage(uuid=node_1)
self.app.nm.createStorage(uuid=node_2)
More information about the Neo-report
mailing list