mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
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:
parent
c69b94d769
commit
6567fcaf35
@ -199,6 +199,9 @@ public class ClusterBlocks {
|
||||
return this;
|
||||
}
|
||||
indices.get(index).remove(block);
|
||||
if (indices.get(index).isEmpty()) {
|
||||
indices.remove(index);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user