| | |
| | | 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(); |
| | |
| | | } |
| | | else if (csn.equals(addTime)) |
| | | { |
| | | if ((lastMod == HistAttrModificationKey.ADD) |
| | | || (lastMod == HistAttrModificationKey.REPL)) |
| | | if (lastMod == HistAttrModificationKey.ADD |
| | | || lastMod == HistAttrModificationKey.REPL) |
| | | { |
| | | if (csn.isNewerThan(deleteTime)) |
| | | { |
| | |
| | | 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; |
| | |
| | | { |
| | | // 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; |