Revision 8842
Added by Jing Tao over 10 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
52 | 52 |
import org.apache.log4j.Logger; |
53 | 53 |
import org.apache.log4j.PropertyConfigurator; |
54 | 54 |
|
55 |
import edu.ucsb.nceas.metacat.common.query.EnabledQueryEngines; |
|
55 | 56 |
import edu.ucsb.nceas.metacat.database.DBConnection; |
56 | 57 |
import edu.ucsb.nceas.metacat.database.DBConnectionPool; |
57 | 58 |
import edu.ucsb.nceas.metacat.database.DatabaseService; |
... | ... | |
508 | 509 |
* Index the paths specified in the metacat.properties |
509 | 510 |
*/ |
510 | 511 |
private void checkIndexPaths() { |
511 |
Logger logMetacat = Logger.getLogger(MetaCatServlet.class); |
|
512 |
Logger logMetacat = Logger.getLogger(MetaCatServlet.class); |
|
513 |
logMetacat.debug("MetaCatServlet.checkIndexPaths - starting...."); |
|
514 |
if(!EnabledQueryEngines.getInstance().isEnabled(EnabledQueryEngines.PATHQUERYENGINE)) { |
|
515 |
logMetacat.info("MetaCatServlet.checkIndexPaths - the pathquery is disabled and it does nothing for checking path_index"); |
|
516 |
return; |
|
517 |
} |
|
518 |
logMetacat.debug("MetaCatServlet.checkIndexPaths - after checking is the pathquery enabled or not..."); |
|
519 |
|
|
512 | 520 |
|
513 | 521 |
Vector<String> pathsForIndexing = null; |
514 | 522 |
try { |
Also available in: Unified diff
Add a code to check if the pathquery engine is enabled in the checkIndexPaths method.