Merge "Remove useless calls to autoReindexIfStale"
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user