Index admin user account that is created during init
During the initialization of a new site the InitAdminUser init step may create an account for the initial admin user. This new account must be added to the index so that it becomes queryable. For this init must have the account index available so that it can write the new account to it. Reading from the index during init is not needed and not supported. Alternatively we could require users to run the Reindex program after the initial site initialization, but likely many people would forget about it and then wonder why the initial admin user is not working. Change-Id: Iebee152fa0b28df3fe59da74ad688c4373488c53 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
package com.google.gerrit.server.index.account;
|
||||
|
||||
import com.google.gerrit.common.Nullable;
|
||||
import com.google.gerrit.reviewdb.client.Account;
|
||||
import com.google.gerrit.server.account.AccountState;
|
||||
import com.google.gerrit.server.index.IndexDefinition;
|
||||
@@ -27,7 +28,7 @@ public class AccountIndexDefinition
|
||||
AccountIndexDefinition(
|
||||
AccountIndexCollection indexCollection,
|
||||
AccountIndex.Factory indexFactory,
|
||||
AllAccountsIndexer allAccountsIndexer) {
|
||||
@Nullable AllAccountsIndexer allAccountsIndexer) {
|
||||
super(AccountSchemaDefinitions.INSTANCE, indexCollection, indexFactory,
|
||||
Providers.of(allAccountsIndexer));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user