data: explicitly clear all errors when refreshing incomplete files

This commit is contained in:
Eberhard Graether
2018-06-11 15:55:23 +02:00
parent 1a37a9af34
commit 1c9b4c1afd
7 changed files with 29 additions and 4 deletions
@@ -450,6 +450,13 @@ void SqliteIndexStorage::removeElementsWithLocationInFiles(const std::vector<Id>
}
}
void SqliteIndexStorage::removeAllErrors()
{
executeStatement(
"DELETE FROM error;"
);
}
void SqliteIndexStorage::removeErrorsInFiles(const std::vector<FilePath>& filePaths)
{
executeStatement(