Revision 2580
Added by sgarg over 18 years ago
DocumentImpl.java | ||
---|---|---|
2102 | 2102 |
parser.parse(new InputSource(xml)); |
2103 | 2103 |
conn.commit(); |
2104 | 2104 |
conn.setAutoCommit(true); |
2105 |
|
|
2106 |
DBSAXHandler dbx = (DBSAXHandler) parser.getContentHandler(); |
|
2107 |
dbx.runIndexingThread(); |
|
2105 | 2108 |
} catch (Exception e) { |
2106 | 2109 |
conn.rollback(); |
2107 | 2110 |
conn.setAutoCommit(true); |
Also available in: Unified diff
Fix for bug 2060.
Moved the call to starting of indexing thread from endDocument to DocumentImpl after commit has been done. This way when ever a document is indexed it has already been entered in xml_nodes and xml_documents