mirror of https://github.com/apache/activemq.git
calculate message size even if the minimumMessageSize == 0
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@620500 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5460b7bb47
commit
f94406aae6
|
@ -625,7 +625,7 @@ public abstract class Message extends BaseCommand implements MarshallAware, Mess
|
|||
|
||||
public int getSize() {
|
||||
int minimumMessageSize = getMinimumMessageSize();
|
||||
if (size < minimumMessageSize) {
|
||||
if (size < minimumMessageSize || size == 0) {
|
||||
size = minimumMessageSize;
|
||||
if (marshalledProperties != null) {
|
||||
size += marshalledProperties.getLength();
|
||||
|
|
Loading…
Reference in New Issue