Merge branch 'stable-3.1'

* stable-3.1:
  Fix firing pending "..all.." events on startup
  Do not block ref-updates during the configuration reload

Change-Id: I576ce713fe266caefeb150e3b889e6b254a92725
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/DestinationsCollection.java b/src/main/java/com/googlesource/gerrit/plugins/replication/DestinationsCollection.java
index d869e83..b58a1ff 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/DestinationsCollection.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/DestinationsCollection.java
@@ -139,7 +139,7 @@
   }
 
   @Override
-  public synchronized List<Destination> getAll(FilterType filterType) {
+  public List<Destination> getAll(FilterType filterType) {
     Predicate<? super Destination> filter;
     switch (filterType) {
       case PROJECT_CREATION:
@@ -157,7 +157,7 @@
   }
 
   @Override
-  public synchronized boolean isEmpty() {
+  public boolean isEmpty() {
     return destinations.isEmpty();
   }