DS-2855: Remove unnecessary SOLR query during startup of SOLR Logger

This commit is contained in:
Pascal-Nicolas Becker
2015-10-29 18:52:45 +01:00
parent ce2522fbc7
commit 37376f72a6

View File

@@ -120,9 +120,6 @@ public class SolrLoggerServiceImpl implements SolrLoggerService, InitializingBea
try
{
server = new HttpSolrServer(ConfigurationManager.getProperty("solr-statistics", "server"));
SolrQuery solrQuery = new SolrQuery()
.setQuery("type:2 AND id:1");
server.query(solrQuery);
//Attempt to retrieve all the statistic year cores
File solrDir = new File(ConfigurationManager.getProperty("dspace.dir") + "/solr/");