Author: gsim
Date: Mon Feb 12 06:26:01 2007
New Revision: 506459
URL: http://svn.apache.org/viewvc?view=rev&rev=506459
Log:
Corrected calculation of inline content size.
Modified:
incubator/qpid/branches/qpid.0-9/cpp/lib/broker/BrokerMessageMessage.cpp
Modified:
incubator/qpid/branches/qpid.0-9/cpp/lib/broker/BrokerMessageMessage.cpp
URL:
http://svn.apache.org/viewvc/incubator/qpid/branches/qpid.0-9/cpp/lib/broker/BrokerMessageMessage.cpp?view=diff&rev=506459&r1=506458&r2=506459
==============================================================================
--- incubator/qpid/branches/qpid.0-9/cpp/lib/broker/BrokerMessageMessage.cpp
(original)
+++ incubator/qpid/branches/qpid.0-9/cpp/lib/broker/BrokerMessageMessage.cpp
Mon Feb 12 06:26:01 2007
@@ -122,7 +122,7 @@
{
// FIXME astitcher 2007-2-7 only works for inline content
if (transfer->getBody().isInline())
- return transfer->getBody().size();
+ return transfer->getBody().getValue().size();
else
THROW_QPID_ERROR(INTERNAL_ERROR, "Unfinished");
}