Skip to content

Commit

Permalink
Merge pull request #50 from richardbadman/bw_branch_7_7_2
Browse files Browse the repository at this point in the history
Allow plugin versions which implement the metric interface to be regi…
  • Loading branch information
richardbadman authored Apr 20, 2021
2 parents 18a54ba + ff0275a commit 691b2dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions solr/core/src/java/org/apache/solr/core/SolrCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ private IndexDeletionPolicyWrapper initDeletionPolicy(IndexDeletionPolicyWrapper
delPolicy = new SolrDeletionPolicy();
}

if (delPolicy instanceof SolrMetricProducer) {
coreMetricManager.registerMetricProducer("IndexDeletionPolicy", (SolrMetricProducer)delPolicy);
}

return new IndexDeletionPolicyWrapper(delPolicy, snapshotMgr);
}

Expand Down

0 comments on commit 691b2dc

Please sign in to comment.