Fix: Guice creation error in Reindex

Run reindex without '--recheck-mergeable' will get
Guice creation error which say No implementation for
com.google.gerrit.server.change.ChangeKindCache was bound.

Fixed.

Change-Id: I89118ce699e91b82f26da772fd252e4f29645dc0
This commit is contained in:
Bruce Zu
2014-04-15 12:59:11 +08:00
parent 480a8ecf78
commit 52b7839c2d

View File

@@ -219,6 +219,7 @@ public class Reindex extends SiteProgram {
install(GroupIncludeCacheImpl.module());
install(ProjectCacheImpl.module());
install(SectionSortCache.module());
install(ChangeKindCacheImpl.module());
factory(CapabilityControl.Factory.class);
factory(ChangeData.Factory.class);
factory(ProjectState.Factory.class);
@@ -297,9 +298,6 @@ public class Reindex extends SiteProgram {
DynamicSet.setOf(binder(), GitReferenceUpdatedListener.class);
DynamicSet.setOf(binder(), CommitValidationListener.class);
factory(CommitValidators.Factory.class);
install(ChangeKindCacheImpl.module());
install(new GitModule());
install(new NoteDbModule());
}