qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tr...@apache.org
Subject qpid-dispatch git commit: DISPATCH-888 - Added optimization for balanced distribution when a zero-cost link is found. Hat Tip: Ganesh Murthy This closes #227
Date Tue, 05 Dec 2017 14:35:03 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 611f8b706 -> d5f279b8b


DISPATCH-888 - Added optimization for balanced distribution when a zero-cost link is found.
Hat Tip: Ganesh Murthy
This closes #227


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/d5f279b8
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/d5f279b8
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/d5f279b8

Branch: refs/heads/master
Commit: d5f279b8b85e8ee4378c195666824b13b327e39e
Parents: 611f8b7
Author: Ted Ross <tross@redhat.com>
Authored: Tue Dec 5 09:33:26 2017 -0500
Committer: Ted Ross <tross@redhat.com>
Committed: Tue Dec 5 09:33:26 2017 -0500

----------------------------------------------------------------------
 src/router_core/forwarder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/d5f279b8/src/router_core/forwarder.c
----------------------------------------------------------------------
diff --git a/src/router_core/forwarder.c b/src/router_core/forwarder.c
index a07fe15..ed4fec3 100644
--- a/src/router_core/forwarder.c
+++ b/src/router_core/forwarder.c
@@ -562,7 +562,7 @@ int qdr_forward_balanced_CT(qdr_core_t      *core,
     // Start with the local links
     //
     qdr_link_ref_t *link_ref = DEQ_HEAD(addr->rlinks);
-    while (link_ref) {
+    while (link_ref && eligible_link_value != 0) {
         qdr_link_t *link     = link_ref->link;
         uint32_t    value    = DEQ_SIZE(link->undelivered) + DEQ_SIZE(link->unsettled);
         bool        eligible = link->capacity > value;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message