Commit 90adae0b authored by Vincent Pelletier's avatar Vincent Pelletier

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.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2363 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 15322923
...@@ -45,7 +45,7 @@ class InitializationHandler(BaseMasterHandler): ...@@ -45,7 +45,7 @@ class InitializationHandler(BaseMasterHandler):
for cell in pt.getCellList(offset): for cell in pt.getCellList(offset):
cell_list.append((offset, cell.getUUID(), cell.getState())) cell_list.append((offset, cell.getUUID(), cell.getState()))
if cell.getUUID() == app.uuid: if cell.getUUID() == app.uuid:
assigned_set.remove(offset) unassigned_set.remove(offset)
# delete objects database # delete objects database
if unassigned_set: if unassigned_set:
logging.debug('drop data for partitions %r' % unassigned_set) logging.debug('drop data for partitions %r' % unassigned_set)
......
...@@ -78,6 +78,7 @@ class StorageInitializationHandlerTests(NeoTestBase): ...@@ -78,6 +78,7 @@ class StorageInitializationHandlerTests(NeoTestBase):
node_1 = self.getNewUUID() node_1 = self.getNewUUID()
node_2 = self.getNewUUID() node_2 = self.getNewUUID()
node_3 = self.getNewUUID() node_3 = self.getNewUUID()
self.app.uuid = node_1
# SN already know all nodes # SN already know all nodes
self.app.nm.createStorage(uuid=node_1) self.app.nm.createStorage(uuid=node_1)
self.app.nm.createStorage(uuid=node_2) self.app.nm.createStorage(uuid=node_2)
......
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