data: Fixes in indexing

* Show status update for every indexed translation unit and only once
* Save nodes in same order they were indexed
This commit is contained in:
Eberhard Graether
2017-05-09 22:55:49 +02:00
parent f4caacacf2
commit 3fdd24f038
7 changed files with 98 additions and 53 deletions
@@ -33,7 +33,7 @@ void InterprocessIndexer::work()
LOG_INFO_STREAM(<< m_processId << " Indexing " << indexerCommand->getSourceFilePath().str());
LOG_INFO_STREAM(<< m_processId << " Commands left: " << (m_interprocessIndexerCommandManager.indexerCommandCount() + 1));
m_interprocessIndexingStatusManager.setCurrentlyIndexedSourceFilePath(indexerCommand->getSourceFilePath());
m_interprocessIndexingStatusManager.startIndexingSourceFile(indexerCommand->getSourceFilePath());
FileRegisterStateData data;
data.setIndexedFiles(m_interprocessIndexingStatusManager.getIndexedFiles());
@@ -48,7 +48,7 @@ void InterprocessIndexer::work()
m_interprocessIntermediateStorageManager.pushIntermediateStorage(result);
m_interprocessIndexingStatusManager.clearCurrentlyIndexedSourceFilePath();
m_interprocessIndexingStatusManager.finishIndexingSourceFile();
}
}
catch (boost::interprocess::interprocess_exception& e)