Merge branch 'stable-2.8' into stable-2.9
* stable-2.8: Emit ref-updated event when editing project access via web UI Fix ChangeListener auto-registered implementations Fix: The email notification of review comments gets stuck. Use consistent grammatical tense in command descriptions Make skip bar more user friendly Bump version to 2.8.4 in plugin API and archetypes Helper script to update API version in plugin archetype pom files Serialize GWT dbg and opt compiles Bump GERRIT_VERSION to 2.8.4 Update the mysql documentation concerning charsets By default don't allow admins to create new branches by push Disable commitWithin when running Reindex Emit ref-updated event when editing project access via web UI SideBySide2: Fix syntax highlighting for shell files ChangeScreen2: Respect comment visibility strategy Don't add "Patch File" download link for merge commits The change 'ChangeScreen2: Respect comment visibility strategy' [1] is dropped intentionally, see [2]. [1] https://gerrit-review.googlesource.com/55081 [2] https://gerrit-review.googlesource.com/#/c/55536/3/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/History.java Conflicts: Documentation/config-gerrit.txt VERSION gerrit-gwtui/BUCK gerrit-gwtui/src/main/java/com/google/gerrit/client/change/ChangeScreen2.java gerrit-gwtui/src/main/java/com/google/gerrit/client/change/DownloadBox.java gerrit-gwtui/src/main/java/com/google/gerrit/client/change/History.java gerrit-gwtui/src/main/java/com/google/gerrit/client/diff/SkipBar.java gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/project/ChangeProjectAccess.java gerrit-plugin-archetype/pom.xml gerrit-plugin-gwt-archetype/pom.xml gerrit-plugin-gwtui/pom.xml gerrit-plugin-js-archetype/pom.xml gerrit-server/src/main/java/com/google/gerrit/server/change/EmailReviewComments.java gerrit-server/src/main/java/com/google/gerrit/server/project/PutConfig.java gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ListMembersCommand.java Change-Id: I16c848cb385080fd25555c983a3030e0f1cc560b
This commit is contained in:
@@ -156,7 +156,7 @@ public class LuceneChangeIndex implements ChangeIndex {
|
||||
|
||||
static class GerritIndexWriterConfig {
|
||||
private final IndexWriterConfig luceneConfig;
|
||||
private final long commitWithinMs;
|
||||
private long commitWithinMs;
|
||||
|
||||
private GerritIndexWriterConfig(Version version, Config cfg, String name) {
|
||||
luceneConfig = new IndexWriterConfig(version,
|
||||
@@ -169,9 +169,13 @@ public class LuceneChangeIndex implements ChangeIndex {
|
||||
luceneConfig.setMaxBufferedDocs(cfg.getInt(
|
||||
"index", name, "maxBufferedDocs",
|
||||
IndexWriterConfig.DEFAULT_MAX_BUFFERED_DOCS));
|
||||
commitWithinMs = ConfigUtil.getTimeUnit(
|
||||
cfg, "index", name, "commitWithin",
|
||||
MILLISECONDS.convert(5, MINUTES), MILLISECONDS);
|
||||
try {
|
||||
commitWithinMs =
|
||||
ConfigUtil.getTimeUnit(cfg, "index", name, "commitWithin",
|
||||
MILLISECONDS.convert(5, MINUTES), MILLISECONDS);
|
||||
} catch (IllegalArgumentException e) {
|
||||
commitWithinMs = cfg.getLong("index", name, "commitWithin", 0);
|
||||
}
|
||||
}
|
||||
|
||||
IndexWriterConfig getLuceneConfig() {
|
||||
|
Reference in New Issue
Block a user