mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

gbellato
30.36.2009 de31d33cb934a7ec46beedfbf25fe0f069ac0cfa
opends/src/server/org/opends/server/replication/plugin/MultimasterReplication.java
@@ -119,6 +119,8 @@
  private boolean isRegistered = false;
  private static boolean initializationCompleted = true;
  /**
   * Finds the domain for a given DN.
   *
@@ -268,6 +270,7 @@
      ReplicationSynchronizationProviderCfg configuration)
  throws ConfigException
  {
    initializationCompleted = false;
    domains.clear();
    replicationServerListener = new ReplicationServerListener(configuration);
@@ -307,6 +310,8 @@
    DirectoryServer.registerSupportedControl(
        ReplicationRepairRequestControl.OID_REPLICATION_REPAIR_CONTROL);
    initializationCompleted = true;
  }
  /**
@@ -843,6 +848,9 @@
   */
  public static boolean isLocalServerId(Integer serverId)
  {
    if (!initializationCompleted)
      return true;
    for (LDAPReplicationDomain domain : domains.values())
    {
      if (domain.getServerId() == serverId)