From deee2943f95ece5d77fc1959c9284808937e609f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20=C5=BDivkov?= Date: Thu, 19 Apr 2018 14:47:45 +0200 Subject: Change default for the replicateOnStartup to false Now that replication events are persistent and non-finished replications rescheduled after plugin restart the replicateOnStartup feature becomes less important. We can change the default value for this option to false. Change-Id: I237d8d8514e01b8786b7db9f39bead4eb475a0a4 (cherry picked from commit 807790f7d4058235a19b2a766e84628168b64ae6) --- .../gerrit/plugins/replication/ReplicationFileBasedConfig.java | 2 +- src/main/resources/Documentation/config.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java index 1bba96d..d68505c 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java @@ -114,7 +114,7 @@ public class ReplicationFileBasedConfig implements ReplicationConfig { String.format("Cannot read %s: %s", config.getFile(), e.getMessage()), e); } - replicateAllOnPluginStart = config.getBoolean("gerrit", "replicateOnStartup", true); + replicateAllOnPluginStart = config.getBoolean("gerrit", "replicateOnStartup", false); defaultForceUpdate = config.getBoolean("gerrit", "defaultForceUpdate", false); diff --git a/src/main/resources/Documentation/config.md b/src/main/resources/Documentation/config.md index 81a0613..c479ab2 100644 --- a/src/main/resources/Documentation/config.md +++ b/src/main/resources/Documentation/config.md @@ -65,7 +65,7 @@ remote section appears in the file. gerrit.replicateOnStartup : If true, replicates to all remotes on startup to ensure they - are in-sync with this server. By default, true. + are in-sync with this server. By default, false. gerrit.autoReload : If true, automatically reloads replication destinations and settings -- cgit v1.2.3