schedule index rebuild after assertion

This commit is contained in:
Maxim.Mossienko
2014-04-11 19:28:14 +02:00
parent 5c53c0d975
commit 0f869ebb31
2 changed files with 6 additions and 0 deletions
@@ -286,6 +286,8 @@ public class StubIndexImpl extends StubIndex implements ApplicationComponent, Pe
else {
throw e;
}
} catch (AssertionError ae) {
forceRebuild(ae);
}
return true;
@@ -910,6 +910,8 @@ public class FileBasedIndexImpl extends FileBasedIndex {
else {
throw e;
}
} catch(AssertionError ae) {
scheduleRebuild(indexId, ae);
}
return null;
}
@@ -1247,6 +1249,8 @@ public class FileBasedIndexImpl extends FileBasedIndex {
else {
throw e;
}
} catch (AssertionError ae) {
scheduleRebuild(indexId, ae);
}
return true;
}