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

Nicolas Capponi
23.02.2016 ec6fcea7eb3b1013db8b26ff65327d3ab24077c9
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/MultimasterReplication.java
@@ -276,11 +276,7 @@
    }
    // If any schema changes were made with the server offline, then handle them now.
    List<Modification> offlineSchemaChanges = serverContext.getSchemaHandler().getOfflineSchemaModifications();
    if (offlineSchemaChanges != null && !offlineSchemaChanges.isEmpty())
    {
      processSchemaChange(offlineSchemaChanges);
    }
    processSchemaChange(serverContext.getSchemaHandler().getOfflineSchemaModifications());
    DirectoryServer.registerBackupTaskListener(this);
    DirectoryServer.registerRestoreTaskListener(this);
@@ -580,10 +576,13 @@
  @Override
  public void processSchemaChange(List<Modification> modifications)
  {
    LDAPReplicationDomain domain = findDomain(DirectoryServer.getSchemaDN(), null);
    if (domain != null)
    if (!modifications.isEmpty())
    {
      domain.synchronizeSchemaModifications(modifications);
      LDAPReplicationDomain domain = findDomain(DirectoryServer.getSchemaDN(), null);
      if (domain != null)
      {
        domain.synchronizeSchemaModifications(modifications);
      }
    }
  }