diff options
author | Gordon Sim <gsim@apache.org> | 2014-05-23 16:10:27 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2014-05-23 16:10:27 +0000 |
commit | 0c839dc7a1ca94f91dfda29134c3feffe3d6d3d5 (patch) | |
tree | fbe6e22c3d6d29dac44645ece91b682d4e84c8a8 /cpp/src/tests/MessageUtils.h | |
parent | 8f8d83c8a6a078ec1595e2c58eed7ab00ce080c4 (diff) | |
download | qpid-python-0c839dc7a1ca94f91dfda29134c3feffe3d6d3d5.tar.gz |
QPID-5783: Share immutable state between copies of a message. Avoid using memory for annotations unless actually required.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1597121 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/MessageUtils.h')
-rw-r--r-- | cpp/src/tests/MessageUtils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/tests/MessageUtils.h b/cpp/src/tests/MessageUtils.h index a6a5aa65fd..2c205da20f 100644 --- a/cpp/src/tests/MessageUtils.h +++ b/cpp/src/tests/MessageUtils.h @@ -107,6 +107,7 @@ struct MessageUtils AMQFrame data((AMQContentBody(content))); msg->getFrames().append(data); } + if (ttl) msg->computeExpiration(new broker::ExpiryPolicy); return Message(msg, msg); } }; |