activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [activemq-artemis] branch master updated: NO-JIRA Duplicate Call on getEncodeSize
Date Tue, 16 Jul 2019 19:15:52 GMT
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 <clebertsuconic@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);
 


Mime
View raw message