mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
fix NPE introduced on optimization of index status on docs status creation
This commit is contained in:
parent
70c344b079
commit
04ae1581a0
@ -135,6 +135,9 @@ public class IndexStatus implements Iterable<IndexShardStatus> {
|
|||||||
if (shard.docs() == null) {
|
if (shard.docs() == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (docs == null) {
|
||||||
|
docs = new DocsStatus();
|
||||||
|
}
|
||||||
docs.numDocs += shard.docs().numDocs();
|
docs.numDocs += shard.docs().numDocs();
|
||||||
docs.maxDoc += shard.docs().maxDoc();
|
docs.maxDoc += shard.docs().maxDoc();
|
||||||
docs.deletedDocs += shard.docs().deletedDocs();
|
docs.deletedDocs += shard.docs().deletedDocs();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user