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

Jean-Noel Rouvignac
06.37.2014 34b97b2d33a1196d3b22bd0ade1e758be613f7f3
opendj3-server-dev/src/server/org/opends/server/replication/protocol/ErrorMsg.java
@@ -156,14 +156,14 @@
  public byte[] getBytes(short version)
  {
    final ByteArrayBuilder builder = new ByteArrayBuilder();
    builder.append(MSG_TYPE_ERROR);
    builder.appendUTF8(senderID);
    builder.appendUTF8(destination);
    builder.append(msgID);
    builder.append(details.toString());
    builder.appendByte(MSG_TYPE_ERROR);
    builder.appendIntUTF8(senderID);
    builder.appendIntUTF8(destination);
    builder.appendString(msgID);
    builder.appendString(details.toString());
    if (version >= ProtocolVersion.REPLICATION_PROTOCOL_V4)
    {
      builder.appendUTF8(creationTime);
      builder.appendLongUTF8(creationTime);
    }
    return builder.toByteArray();
  }