diff options
author | Saša Živkov <sasa.zivkov@sap.com> | 2018-04-19 14:47:45 +0200 |
---|---|---|
committer | Nguyen Tuan Khang Phan <nguyen.tuan.khang.phan@ericsson.com> | 2020-02-21 21:04:44 +0000 |
commit | deee2943f95ece5d77fc1959c9284808937e609f (patch) | |
tree | 156222564f749b74f28e8174de232c6414d42625 | |
parent | 8b5547da463789631721a23919d0270c95ca8f50 (diff) |
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)
-rw-r--r-- | src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java | 2 | ||||
-rw-r--r-- | 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 |