Remove NoteDbChangeState
This was used for coordinating the state of migrating a single change to NoteDb, so is no longer required. Change-Id: Ie5c313140d810ded904d34273d6118fba2866516
This commit is contained in:
@@ -109,7 +109,6 @@ public class ChangeNotes extends AbstractChangeNotes<ChangeNotes> {
|
||||
|
||||
public ChangeNotes createChecked(Project.NameKey project, Change.Id changeId)
|
||||
throws OrmException {
|
||||
// Prepopulate the change exists with proper noteDbState field.
|
||||
Change change = newChange(project, changeId);
|
||||
return new ChangeNotes(args, change, true, null).load();
|
||||
}
|
||||
@@ -128,11 +127,8 @@ public class ChangeNotes extends AbstractChangeNotes<ChangeNotes> {
|
||||
}
|
||||
|
||||
public static Change newChange(Project.NameKey project, Change.Id changeId) {
|
||||
Change change =
|
||||
new Change(
|
||||
null, changeId, null, new Branch.NameKey(project, "INVALID_NOTE_DB_ONLY"), null);
|
||||
change.setNoteDbState(NoteDbChangeState.NOTE_DB_PRIMARY_STATE);
|
||||
return change;
|
||||
return new Change(
|
||||
null, changeId, null, new Branch.NameKey(project, "INVALID_NOTE_DB_ONLY"), null);
|
||||
}
|
||||
|
||||
public ChangeNotes create(Project.NameKey project, Change.Id changeId) throws OrmException {
|
||||
|
||||
Reference in New Issue
Block a user