You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2013/09/20 20:34:59 UTC
svn commit: r1525090 - /qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp
Author: gsim
Date: Fri Sep 20 18:34:59 2013
New Revision: 1525090
URL: http://svn.apache.org/r1525090
Log:
QPID-5151: reroute messages to alt exchange if not delievered to any queues
Modified:
qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp?rev=1525090&r1=1525089&r2=1525090&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp Fri Sep 20 18:34:59 2013
@@ -607,6 +607,11 @@ void IncomingToExchange::handle(qpid::br
authorise.route(exchange, message);
DeliverableMessage deliverable(message, 0);
exchange->route(deliverable);
+ if (!deliverable.delivered) {
+ if (exchange->getAlternate()) {
+ exchange->getAlternate()->route(deliverable);
+ }
+ }
}
}}} // namespace qpid::broker::amqp
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org