Commit a0dd4a3b authored by Julien Muchembled's avatar Julien Muchembled

storage: clarify log about data deletion of discarded cells

parent d612fc84
......@@ -28,21 +28,21 @@ class InitializationHandler(BaseMasterHandler):
raise ProtocolError('Partial partition table received')
# Install the partition table into the database for persistence.
cell_list = []
offset_list = xrange(pt.getPartitions())
unassigned_set = set(offset_list)
for offset in offset_list:
unassigned = range(pt.getPartitions())
for offset in reversed(unassigned):
for cell in pt.getCellList(offset):
cell_list.append((offset, cell.getUUID(), cell.getState()))
if cell.getUUID() == app.uuid:
# delete objects database
dm =
if unassigned_set:
if unassigned:
if app.disable_drop_partitions:"don't drop data for partitions %r", unassigned_set)'partitions %r are discarded but actual deletion'
' of data is disabled', unassigned)
logging.debug('drop data for partitions %r', unassigned_set)
logging.debug('drop data for partitions %r', unassigned)
dm.changePartitionTable(ptid, cell_list, reset=True)
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