summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/broker/amqp/Outgoing.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-09-12 09:26:30 +0000
committerGordon Sim <gsim@apache.org>2013-09-12 09:26:30 +0000
commitbf746b5958b0107e66dabad39024f7ad933820ad (patch)
treece9191829464464ef6ddf0a94ee22e1034839147 /qpid/cpp/src/qpid/broker/amqp/Outgoing.h
parent22b2a9a49eff4901fae0ef4987559aec59b4f683 (diff)
downloadqpid-python-bf746b5958b0107e66dabad39024f7ad933820ad.tar.gz
QPID-5122: QPID-5134: fix build on windows by avoiding use of templated Buffer method (don't need variable sized delivery tag)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1522499 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/broker/amqp/Outgoing.h')
-rw-r--r--qpid/cpp/src/qpid/broker/amqp/Outgoing.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/broker/amqp/Outgoing.h b/qpid/cpp/src/qpid/broker/amqp/Outgoing.h
index 38d9e17190..81994f2b66 100644
--- a/qpid/cpp/src/qpid/broker/amqp/Outgoing.h
+++ b/qpid/cpp/src/qpid/broker/amqp/Outgoing.h
@@ -118,8 +118,12 @@ class OutgoingFromQueue : public Outgoing, public qpid::broker::Consumer, public
int disposition;
size_t index;
pn_delivery_tag_t tag;
- static const size_t TAG_WIDTH = sizeof(size_t);
- char tagData[TAG_WIDTH];//index in encoded form, used for tag
+ //The delivery tag is a 4 byte value representing the
+ //index. It is encoded separately to avoid alignment issues.
+ //The number of deliveries held here is always strictly
+ //bounded, so 4 bytes is more than enough.
+ static const size_t TAG_WIDTH = sizeof(uint32_t);
+ char tagData[TAG_WIDTH];
Record();
void init(size_t i);