diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2009-09-14 15:20:13 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2009-09-14 15:20:13 +0000 |
| commit | 683a5677a37def4ed3c564fbebfe8951bcf86142 (patch) | |
| tree | 5ebe32fcb4a61f32eb12c64e05eceb402d8b5300 /cpp/src/qpid/broker/Exchange.cpp | |
| parent | d84a5a7e693922fbb18d7db020c28be8471f11e3 (diff) | |
| download | qpid-python-683a5677a37def4ed3c564fbebfe8951bcf86142.tar.gz | |
Reversed checkin of r.813825 until its problems can be resolved
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@814692 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Exchange.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/Exchange.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/cpp/src/qpid/broker/Exchange.cpp b/cpp/src/qpid/broker/Exchange.cpp index 9b5796bde3..90d81b81c6 100644 --- a/cpp/src/qpid/broker/Exchange.cpp +++ b/cpp/src/qpid/broker/Exchange.cpp @@ -76,49 +76,6 @@ Exchange::PreRoute::~PreRoute(){ } } -void Exchange::blockContentReleaseCheck(Deliverable& msg, qpid::sys::CopyOnWriteArray<Binding::shared_ptr>::ConstPtr p) -{ - bool allQueuesPersistent = true; - for (std::vector<Binding::shared_ptr>::const_iterator i = p->begin(); allQueuesPersistent && i!=p->end(); i++) { - allQueuesPersistent = (*i)->queue->getPersistenceId() > 0; - } - if (msg.getMessage().contentSize() && (!allQueuesPersistent || (p->size() > 1 && !msg.getMessage().isPersistent()))) { - msg.getMessage().blockRelease(); - } -} - -void Exchange::doRoute(Deliverable& msg, qpid::sys::CopyOnWriteArray<Binding::shared_ptr>::ConstPtr p) -{ - int count = 0; - - if (p.get()) { - blockContentReleaseCheck(msg, p); - - for(std::vector<Binding::shared_ptr>::const_iterator i = p->begin(); i != p->end(); i++, count++) { - msg.deliverTo((*i)->queue); - if ((*i)->mgmtBinding != 0) - (*i)->mgmtBinding->inc_msgMatched(); - } - } - - if (mgmtExchange != 0) - { - mgmtExchange->inc_msgReceives (); - mgmtExchange->inc_byteReceives (msg.contentSize ()); - if (count == 0) - { - //QPID_LOG(warning, "Exchange " << getName() << " could not route message; no matching binding found"); - mgmtExchange->inc_msgDrops (); - mgmtExchange->inc_byteDrops (msg.contentSize ()); - } - else - { - mgmtExchange->inc_msgRoutes (count); - mgmtExchange->inc_byteRoutes (count * msg.contentSize ()); - } - } -} - void Exchange::routeIVE(){ if (ive && lastMsg.get()){ DeliverableMessage dmsg(lastMsg); |
