You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2017/03/01 21:05:26 UTC

activemq-artemis git commit: Fixing replication tests

Repository: activemq-artemis
Updated Branches:
  refs/heads/artemis-1009 6e9c0eae1 -> 5cf9e7580


Fixing replication tests


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/5cf9e758
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/5cf9e758
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/5cf9e758

Branch: refs/heads/artemis-1009
Commit: 5cf9e7580ae5e1551436fecae4fc8728f05a071b
Parents: 6e9c0ea
Author: Clebert Suconic <cl...@apache.org>
Authored: Wed Mar 1 16:05:17 2017 -0500
Committer: Clebert Suconic <cl...@apache.org>
Committed: Wed Mar 1 16:05:17 2017 -0500

----------------------------------------------------------------------
 .../org/apache/activemq/artemis/core/message/impl/CoreMessage.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/5cf9e758/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java
index b1bad5a..513b758 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java
@@ -990,6 +990,7 @@ public class CoreMessage extends RefCountMessage {
 
    @Override
    public void persist(ActiveMQBuffer targetRecord) {
+      checkEncode();
       targetRecord.writeInt(buffer.writerIndex());
       targetRecord.writeBytes(buffer, 0, buffer.writerIndex());
    }