summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/googlesource/gerrit/plugins/replication/OnStartStop.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/googlesource/gerrit/plugins/replication/OnStartStop.java')
-rw-r--r--src/main/java/com/googlesource/gerrit/plugins/replication/OnStartStop.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/OnStartStop.java b/src/main/java/com/googlesource/gerrit/plugins/replication/OnStartStop.java
index 90d4644..c752edc 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/OnStartStop.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/OnStartStop.java
@@ -46,7 +46,9 @@ class OnStartStop implements LifecycleListener {
if (srvInfo.getState() == ServerInformation.State.STARTUP
&& queue.replicateAllOnPluginStart) {
- pushAllFuture.set(pushAll.create(null).schedule(30, TimeUnit.SECONDS));
+ ReplicationState state =
+ new ReplicationState(ReplicationType.STARTUP);
+ pushAllFuture.set(pushAll.create(null, state).schedule(30, TimeUnit.SECONDS));
}
}