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

ludovicp
25.47.2010 79b017514ce3dd6a0885f3fef94b6f698fc25b58
Fixes an issue with the way the historical information (meta-data) is generated for Add operations through replication.
3 files modified
8 ■■■■ changed files
opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java 1 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/MultimasterReplication.java 2 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/AddMsg.java 5 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
@@ -2280,7 +2280,6 @@
        findEntryId(addOperation.getEntryDN().getParentDNInSuffix()));
    addOperation.setAttachment(SYNCHROCONTEXT, ctx);
    Historical.generateState(addOperation);
  }
  /**
opends/src/server/org/opends/server/replication/plugin/MultimasterReplication.java
@@ -574,6 +574,8 @@
    if (!addOperation.isSynchronizationOperation())
      domain.doPreOperation(addOperation);
    Historical.generateState(addOperation);
    return new SynchronizationProviderResult.ContinueProcessing();
  }
opends/src/server/org/opends/server/replication/protocol/AddMsg.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 *      Copyright 2006-2010 Sun Microsystems, Inc.
 */
package org.opends.server.replication.protocol;
@@ -42,6 +42,7 @@
import org.opends.server.protocols.asn1.ASN1;
import org.opends.server.protocols.asn1.ASN1Exception;
import org.opends.server.replication.common.ChangeNumber;
import org.opends.server.replication.plugin.Historical;
import org.opends.server.types.*;
import org.opends.server.types.operation.PostOperationAddOperation;
@@ -344,6 +345,7 @@
      {
        for (Attribute a : list)
        {
          if (!Historical.isHistoricalAttribute(a))
          if (!a.isVirtual())
            new LDAPAttribute(a).write(writer);
        }
@@ -354,6 +356,7 @@
      {
        for (Attribute a : list)
        {
          if (!Historical.isHistoricalAttribute(a))
          if (!a.isVirtual())
            new LDAPAttribute(a).write(writer);
        }