1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-19 22:25:52 +02:00

Fix for 162758, clear index before using reader factory.

This commit is contained in:
Markus Schorn 2006-10-30 16:16:41 +00:00
parent 229bbeea3d
commit c8b7ec6935
2 changed files with 2 additions and 3 deletions
core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer

View file

@ -36,9 +36,9 @@ class PDOMFastReindex extends PDOMFastIndexerJob {
try {
long start = System.currentTimeMillis();
setupIndexAndReaderFactory();
registerTUsInReaderFactory(fTUs);
clearIndex(index);
registerTUsInReaderFactory(fTUs);
fFilesToIndex--;
parseTUs(fTUs, monitor);

View file

@ -40,9 +40,8 @@ class PDOMFullReindex extends PDOMFullIndexerJob {
long start = System.currentTimeMillis();
setupIndexAndReaderFactory();
registerTUsInReaderFactory(fTUs);
clearIndex(index);
registerTUsInReaderFactory(fTUs);
fFilesToIndex--;
parseTUs(fTUs, monitor);