From ebbc500b821ac032a1953e209a820c4139c28ce5 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Tue, 16 Jul 2019 10:47:48 -0400 Subject: [PATCH] NO-JIRA Duplicate Call on getEncodeSize --- .../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 6e5b651353..fe4d432830 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);