Project

General

Profile

« Previous | Next » 

Revision 2593

Added by sgarg about 19 years ago

Added code to start threads which initiate indexing once insertion to xml_nodes is complete.

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
2103 2103
                    conn.commit();
2104 2104
                    conn.setAutoCommit(true);
2105 2105

  
2106
                    // write to xml_node complete. start the indexing thread.
2106 2107
                    DBSAXHandler dbx = (DBSAXHandler) parser.getContentHandler();
2107 2108
                    dbx.runIndexingThread();
2108 2109
                } catch (Exception e) {
......
2170 2171
            parser.parse(new InputSource(xml));
2171 2172
            conn.commit();
2172 2173
            conn.setAutoCommit(true);
2174
            
2175
            // write to xml_node complete. start the indexing thread.
2176
            DBSAXHandler dbx = (DBSAXHandler) parser.getContentHandler();
2177
            dbx.runIndexingThread();
2173 2178
        } catch (Exception e) {
2174 2179
            conn.rollback();
2175 2180
            conn.setAutoCommit(true);
......
2320 2325
            parser.parse(new InputSource(xml));
2321 2326
            conn.commit();
2322 2327
            conn.setAutoCommit(true);
2328
            
2329
            // write to xml_node complete. start the indexing thread.
2330
            DBSAXHandler dbx = (DBSAXHandler) parser.getContentHandler();
2331
            dbx.runIndexingThread();
2332

  
2323 2333
        } catch (Exception e) {
2324 2334
            conn.rollback();
2325 2335
            conn.setAutoCommit(true);

Also available in: Unified diff