| | |
| | | + ")" + |
| | | "] [nextNonEligibleMsg=" + nextNonEligibleMsg + |
| | | "] [startState=" + startState + |
| | | "] [stopState= " + stopState + |
| | | "] [currentState= " + currentState + "]]"); |
| | | "] [stopState=" + stopState + |
| | | "] [currentState=" + currentState + "]]"); |
| | | } |
| | | |
| | | /** |
| | |
| | | if (isPersistent == |
| | | StartECLSessionMsg.PERSISTENT_CHANGES_ONLY) |
| | | { |
| | | newDomainCtxt.startState = rsd.getEligibleState(eligibleCN, true); |
| | | newDomainCtxt.startState = rsd.getEligibleState(eligibleCN); |
| | | startStatesFromProvidedCookie.remove(rsd.getBaseDn()); |
| | | } |
| | | else |
| | |
| | | // let's start traversing this domain from the beginning of |
| | | // what we have in the replication changelog |
| | | if (newDomainCtxt.startState == null) |
| | | newDomainCtxt.startState = new ServerState(); |
| | | { |
| | | ChangeNumber latestTrimCN = |
| | | new ChangeNumber(newDomainCtxt.domainLatestTrimDate, 0,0); |
| | | newDomainCtxt.startState = rsd.getStartState() |
| | | .duplicateOnlyOlderThan(latestTrimCN); |
| | | } |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | |
| | | // Set the stop state for the domain from the eligibleCN |
| | | newDomainCtxt.stopState = rsd.getEligibleState(eligibleCN, true); |
| | | newDomainCtxt.stopState = rsd.getEligibleState(eligibleCN); |
| | | } |
| | | newDomainCtxt.currentState = new ServerState(); |
| | | |
| | |
| | | rsd.registerHandler(mh); |
| | | newDomainCtxt.mh = mh; |
| | | |
| | | previousCookie.update( |
| | | newDomainCtxt.rsd.getBaseDn(), |
| | | newDomainCtxt.startState); |
| | | previousCookie.update(newDomainCtxt.rsd.getBaseDn(), |
| | | newDomainCtxt.startState); |
| | | |
| | | // store the new context |
| | | tmpSet.add(newDomainCtxt); |
| | |
| | | ResultCode.UNWILLING_TO_PERFORM, |
| | | ERR_INVALID_COOKIE_SYNTAX.get()); |
| | | } |
| | | |
| | | excludedServiceIDs = startECLSessionMsg.getExcludedServiceIDs(); |
| | | replicationServer.disableEligibility(excludedServiceIDs); |
| | | eligibleCN = replicationServer.getEligibleCN(); |