remove an index level block if its empty (make no sense to keep an empty set for it, also, shouldn't shot it back in APIs)

This commit is contained in:
kimchy 2010-11-09 00:08:30 +02:00
parent c69b94d769
commit 6567fcaf35

View File

@ -199,6 +199,9 @@ public class ClusterBlocks {
return this;
}
indices.get(index).remove(block);
if (indices.get(index).isEmpty()) {
indices.remove(index);
}
return this;
}