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

Jean-Noel Rouvignac
07.25.2013 742e3d0f3e7a9f8ee7240c95e2528d52a8b54dc1
Fix after r9673.

ECLServerHandler.java:
In getNextMessage(), forgot to revert one condition.
Changed domainCtxts from DomainContext[] to Set<DomainContext>.
1 files modified
8 ■■■■ changed files
opends/src/server/org/opends/server/replication/server/ECLServerHandler.java 8 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ECLServerHandler.java
@@ -116,7 +116,7 @@
  /**
   * The global list of contexts by domain for the search currently processed.
   */
  private DomainContext[] domainCtxts = new DomainContext[0];
  private Set<DomainContext> domainCtxts = Collections.emptySet();
  /**
   * Provides a string representation of this object.
@@ -276,7 +276,7 @@
        { // in non blocking mode, null means no more messages
          return null;
        }
        else if (newMsg.getCSN().getTime() < domainLatestTrimDate)
        else if (newMsg.getCSN().getTime() >= domainLatestTrimDate)
        {
          // when the replication changelog is trimmed, the last (latest) chg
          // is left in the db (whatever its age), and we don't want this chg
@@ -699,7 +699,7 @@
    {
      // Creates the table that will contain the real-time info for each
      // and every domain.
      Set<DomainContext> tmpSet = new HashSet<DomainContext>();
      final Set<DomainContext> tmpSet = new HashSet<DomainContext>();
      final StringBuilder missingDomains = new StringBuilder();
      for (ReplicationServerDomain rsd : toIterable(rs.getDomainIterator()))
      {
@@ -803,7 +803,7 @@
              "<" + providedCookie + missingDomains + ">"));
      }
      domainCtxts = tmpSet.toArray(new DomainContext[tmpSet.size()]);
      domainCtxts = tmpSet;
      /*
      When it is valid to have the provided cookie containing unknown domains