nicer code

This commit is contained in:
kimchy 2010-03-31 21:45:56 +03:00
parent 632f0d4f0d
commit 398382f6e7

View File

@ -171,7 +171,7 @@ public class IndicesClusterStateService extends AbstractLifecycleComponent<Indic
// go over and delete either all indices or specific shards
for (final String index : indicesService.indices()) {
if (metaData.index(index) == null) {
if (!metaData.hasIndex(index)) {
if (logger.isDebugEnabled()) {
logger.debug("Index [{}]: Deleting", index);
}