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 2019/07/16 19:15:52 UTC

[activemq-artemis] branch master updated: NO-JIRA Duplicate Call on getEncodeSize

This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/master by this push:
     new ebbc500  NO-JIRA Duplicate Call on getEncodeSize
     new 4e35e46  This closes #2752
ebbc500 is described below

commit ebbc500b821ac032a1953e209a820c4139c28ce5
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Tue Jul 16 10:47:48 2019 -0400

    NO-JIRA Duplicate Call on getEncodeSize
---
 .../activemq/artemis/core/journal/impl/dataformat/JournalAddRecord.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/dataformat/JournalAddRecord.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/dataformat/JournalAddRecord.java
index 6e5b651..fe4d432 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/dataformat/JournalAddRecord.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/dataformat/JournalAddRecord.java
@@ -65,7 +65,7 @@ public class JournalAddRecord extends JournalInternalRecord {
 
       int recordEncodeSize = persister.getEncodeSize(record);
 
-      buffer.writeInt(persister.getEncodeSize(record));
+      buffer.writeInt(recordEncodeSize);
 
       buffer.writeByte(recordType);