o not check for segments-count on optimize:

this is also done in Solr and our getSegmentsCount() does not return
up-to-date values
pull/1/head
sixcooler 11 years ago
parent 8a7c68e4c7
commit 390f03e041

@ -91,7 +91,6 @@ public abstract class SolrServerConnector extends AbstractSolrConnector implemen
@Override
public void optimize(int maxSegments) {
if (this.server == null) return;
if (getSegmentCount() <= maxSegments) return;
synchronized (this.server) {
try {
//this.server.optimize(true, true, maxSegments);

Loading…
Cancel
Save