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

Jean-Noel Rouvignac
16.57.2015 a41662c1136b2bb4a4198df89e0e87d2be3ef099
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalSingle.java
@@ -163,8 +163,8 @@
            conflict = true;
            modsIterator.remove();
          }
          else if ((newValue != null) &&
              (!modifiedEntry.hasValue(type, modAttr.getOptions(), newValue)))
          else if (newValue != null &&
              !modifiedEntry.hasValue(type, modAttr.getOptions(), newValue))
          {
            conflict = true;
            modsIterator.remove();
@@ -184,8 +184,8 @@
      }
      else if (csn.equals(addTime))
      {
        if ((lastMod == HistAttrModificationKey.ADD)
            || (lastMod == HistAttrModificationKey.REPL))
        if (lastMod == HistAttrModificationKey.ADD
            || lastMod == HistAttrModificationKey.REPL)
        {
          if (csn.isNewerThan(deleteTime))
          {
@@ -220,7 +220,7 @@
      else
      {
        if (csn.isNewerThanOrEqualTo(deleteTime)
            && ((addTime == null ) || addTime.isOlderThan(deleteTime)))
            && (addTime == null || addTime.isOlderThan(deleteTime)))
        {
          // no conflict : don't do anything beside setting the addTime
          addTime = csn;
@@ -231,7 +231,7 @@
        {
          // Case where CSN = addTime = deleteTime
          if (csn.equals(deleteTime) && csn.equals(addTime)
              && (lastMod == HistAttrModificationKey.DEL))
              && lastMod == HistAttrModificationKey.DEL)
          {
            // No conflict, record the new value.
            value = newValue;