NoteDbChecker: Refactor to support checking without rebuilding

Change-Id: Idd6a154b25dc7e54bb8105ab8e75b4c36560422c
This commit is contained in:
Dave Borowitz
2016-03-25 10:03:04 -04:00
parent dc86ab526e
commit f449ad4ce7
3 changed files with 91 additions and 46 deletions

View File

@@ -285,7 +285,8 @@ public class GerritServer {
void stop() throws Exception {
try {
if (NoteDbMode.get().equals(NoteDbMode.CHECK)) {
testInjector.getInstance(NoteDbChecker.class).checkAllChanges();
testInjector.getInstance(NoteDbChecker.class)
.rebuildAndCheckAllChanges();
}
} finally {
daemon.getLifecycleManager().stop();