Merge "Remove useless calls to autoReindexIfStale"

This commit is contained in:
Maxime Guerreiro
2018-06-05 15:33:31 +00:00
committed by Gerrit Code Review

View File

@@ -243,8 +243,6 @@ public class ChangeIndexer {
*/
public void index(ReviewDb db, Change change) throws IOException, OrmException {
index(newChangeData(db, change));
// See comment in #index(ChangeData).
autoReindexIfStale(change.getProject(), change.getId());
}
/**
@@ -256,10 +254,7 @@ public class ChangeIndexer {
*/
public void index(ReviewDb db, Project.NameKey project, Change.Id changeId)
throws IOException, OrmException {
ChangeData cd = newChangeData(db, project, changeId);
index(cd);
// See comment in #index(ChangeData).
autoReindexIfStale(cd);
index(newChangeData(db, project, changeId));
}
/**