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

pgamba
18.04.2009 20173f7897427f51f1e2f4412b21ed371dc2ad58
opends/src/server/org/opends/server/replication/server/ECLServerHandler.java
@@ -556,7 +556,7 @@
  public void initializeCLSearchFromGenState(String crossDomainStartState)
  throws DirectoryException
  {
    initializeCLDomCtxts(crossDomainStartState);
    initializeCLDomCtxts(crossDomainStartState, false);
  }
  /**
@@ -652,7 +652,7 @@
      }
      this.draftCompat = true;
      initializeCLDomCtxts(crossDomainStartState);
      initializeCLDomCtxts(crossDomainStartState, true);
    }
    catch(DirectoryException de)
    {
@@ -675,10 +675,13 @@
  /**
   * Initialize the context for each domain.
   * @param providedCookie the provided generalized state
   * @param  providedCookie the provided generalized state
   * @param  allowUnknownDomains Provides all changes for domains not included
   *           in the provided cookie.
   * @throws DirectoryException When an error occurs.
   */
  public void initializeCLDomCtxts(String providedCookie)
  public void initializeCLDomCtxts(String providedCookie,
      boolean allowUnknownDomains)
  throws DirectoryException
  {
    HashMap<String,ServerState> startStates = new HashMap<String,ServerState>();
@@ -734,7 +737,8 @@
          else
          {
            newDomainCtxt.startState = startStates.remove(rsd.getBaseDn());
            if ((providedCookie==null)||(providedCookie.length()==0))
            if ((providedCookie==null)||(providedCookie.length()==0)
                ||allowUnknownDomains)
              newDomainCtxt.startState = new ServerState();
            else
              if (newDomainCtxt.startState == null)