From d490fba74749bcde972e5a0d95f84b165f8ea05e Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 11 Dec 2009 20:55:45 +0000 Subject: QPID-2266: error sending update: Enqueue capacity threshold exceeded Fix for the problem with a test to verify that messages going to the store have the same headers and content-size for an updatee or a broker that receives the publish directly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@889813 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/UpdateClient.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/cluster/UpdateClient.cpp') diff --git a/cpp/src/qpid/cluster/UpdateClient.cpp b/cpp/src/qpid/cluster/UpdateClient.cpp index f263577fd3..279284da2c 100644 --- a/cpp/src/qpid/cluster/UpdateClient.cpp +++ b/cpp/src/qpid/cluster/UpdateClient.cpp @@ -217,10 +217,11 @@ class MessageUpdater { // Disable client code that clears the delivery-properties.exchange sb.get()->setDoClearDeliveryPropertiesExchange(false); framing::MessageTransferBody transfer( - framing::ProtocolVersion(), UpdateClient::UPDATE, message::ACCEPT_MODE_NONE, - message::ACQUIRE_MODE_PRE_ACQUIRED); + *message.payload->getFrames().as()); + transfer.setDestination(UpdateClient::UPDATE); - sb.get()->send(transfer, message.payload->getFrames(), !message.payload->isContentReleased()); + sb.get()->send(transfer, message.payload->getFrames(), + !message.payload->isContentReleased()); if (message.payload->isContentReleased()){ uint16_t maxFrameSize = sb.get()->getConnection()->getNegotiatedSettings().maxFrameSize; uint16_t maxContentSize = maxFrameSize - AMQFrame::frameOverhead(); -- cgit v1.2.1