mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
nicer code
This commit is contained in:
parent
632f0d4f0d
commit
398382f6e7
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user