diff options
author | Gordon Sim <gsim@apache.org> | 2006-10-30 19:27:54 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2006-10-30 19:27:54 +0000 |
commit | b0a120b4edfdb49a08bd7c8c2479e7b1cadc5233 (patch) | |
tree | d2b4ca0e774100285e116e5442bff9e55b4a3f92 /cpp/src/qpid/broker/DirectExchange.cpp | |
parent | f491af49008a2ed219ad4507cd507b4317afa4cb (diff) | |
download | qpid-python-b0a120b4edfdb49a08bd7c8c2479e7b1cadc5233.tar.gz |
Initial implementation for tx class.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@469242 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/DirectExchange.cpp')
-rw-r--r-- | cpp/src/qpid/broker/DirectExchange.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/DirectExchange.cpp b/cpp/src/qpid/broker/DirectExchange.cpp index 63cfda8f51..46693f6f3c 100644 --- a/cpp/src/qpid/broker/DirectExchange.cpp +++ b/cpp/src/qpid/broker/DirectExchange.cpp @@ -51,12 +51,12 @@ void DirectExchange::unbind(Queue::shared_ptr queue, const string& routingKey, F lock.release(); } -void DirectExchange::route(Message::shared_ptr& msg, const string& routingKey, FieldTable* /*args*/){ +void DirectExchange::route(Deliverable& msg, const string& routingKey, FieldTable* /*args*/){ lock.acquire(); std::vector<Queue::shared_ptr>& queues(bindings[routingKey]); int count(0); for(std::vector<Queue::shared_ptr>::iterator i = queues.begin(); i != queues.end(); i++, count++){ - (*i)->deliver(msg); + msg.deliverTo(*i); } if(!count){ std::cout << "WARNING: DirectExchange " << getName() << " could not route message with key " << routingKey << std::endl; |