summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-01-17 13:04:56 +0000
committerGordon Sim <gsim@apache.org>2008-01-17 13:04:56 +0000
commitadab8d6fc99210863b6234fe74d85af900c0035c (patch)
tree87bb97364cbb4135088243ee9ec0cdfe94d4b979 /qpid/cpp/src
parentee1d929ae412a72b6e125717bab546bb475e8682 (diff)
downloadqpid-python-adab8d6fc99210863b6234fe74d85af900c0035c.tar.gz
Set the exchange field in delivery properties on the broker.
(required an adjustment to the size of messages in the bytes based credit test) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@612805 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/broker/SemanticState.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/broker/SemanticState.cpp b/qpid/cpp/src/qpid/broker/SemanticState.cpp
index 9233685800..7b4035604f 100644
--- a/qpid/cpp/src/qpid/broker/SemanticState.cpp
+++ b/qpid/cpp/src/qpid/broker/SemanticState.cpp
@@ -350,6 +350,7 @@ void SemanticState::handle(intrusive_ptr<Message> msg) {
void SemanticState::route(intrusive_ptr<Message> msg, Deliverable& strategy) {
std::string exchangeName = msg->getExchangeName();
+ msg->getProperties<DeliveryProperties>()->setExchange(exchangeName);
if (!cacheExchange || cacheExchange->getName() != exchangeName){
cacheExchange = session.getConnection().broker.getExchanges().get(exchangeName);
}