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
@@ -13,10 +13,12 @@ public:
InterprocessIndexingStatusManager(const std::string& instanceUuid, Id processId, bool isOwner);
virtual ~InterprocessIndexingStatusManager();
void setCurrentlyIndexedSourceFilePath(const FilePath& filePath);
void clearCurrentlyIndexedSourceFilePath();
FilePath getCurrentlyIndexedSourceFilePath();
void startIndexingSourceFile(const FilePath& filePath);
void finishIndexingSourceFile();
Id getNextFinishedProcessId();
std::vector<FilePath> getCurrentlyIndexedSourceFilePaths();
std::vector<FilePath> getCrashedSourceFilePaths();
std::set<FilePath> getIndexedFiles();
@@ -25,10 +27,11 @@ public:
private:
static const char* s_sharedMemoryNamePrefix;
static const char* s_lastFileKeyName;
static const char* s_indexingFilesKeyName;
static const char* s_currentFilesKeyName;
static const char* s_crashedFilesKeyName;
static const char* s_indexedFilesKeyName;
static const char* s_finishedProcessIdsKeyName;
};
#endif // INTERPROCESS_INDEXING_STATUS_MANAGER_H