Project

General

Profile

« Previous | Next » 

Revision 7682

Added by Jing Tao over 11 years ago

Consider mutithread issue there.

View differences:

metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/SolrIndex.java
282 282
     * @throws SolrServerException 
283 283
     * @throws JiBXException 
284 284
     */
285
    private void insert(String pid, SystemMetadata systemMetadata, InputStream data) 
285
    private synchronized void insert(String pid, SystemMetadata systemMetadata, InputStream data) 
286 286
                    throws IOException, SAXException, ParserConfigurationException,
287 287
                    XPathExpressionException, SolrServerException, JiBXException {
288 288
        checkParams(pid, systemMetadata, data);
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/SystemMetadataEventListener.java
236 236
	    System.out.println("===================================calling entryUpdated method ");
237 237
		// add to the index
238 238
		Identifier pid = entryEvent.getKey();
239
		System.out.println("===================================update the document "+pid.getValue());
239 240
		SystemMetadata systemMetadata = entryEvent.getValue();
240 241
		Identifier obsoletes = systemMetadata.getObsoletes();
241 242
		List<String> obsoletesChain = null;

Also available in: Unified diff