Ensure NotesMigration method calls aren't cached
This will soon no longer be an immutable singleton read at startup, so we shouldn't store the results of method calls in other singletons' constructors. Change-Id: I22ef7111586a84d71413876d451611bc8d93b6c6
This commit is contained in:
@@ -37,12 +37,8 @@ public class Sequences {
|
||||
AllProjectsName allProjects) {
|
||||
this.db = db;
|
||||
this.migration = migration;
|
||||
if (migration.readChanges()) {
|
||||
changeSeq = new RepoSequence(
|
||||
repoManager, allProjects, "changes", ReviewDb.FIRST_CHANGE_ID, 100);
|
||||
} else {
|
||||
changeSeq = null;
|
||||
}
|
||||
changeSeq = new RepoSequence(
|
||||
repoManager, allProjects, "changes", ReviewDb.FIRST_CHANGE_ID, 100);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
|
||||
Reference in New Issue
Block a user