Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 88bc3fb62 -> 6d5d7cd29


DISPATCH-1043 - Dont count inter-router HELLO messages in the ingress count


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

Branch: refs/heads/master
Commit: 6d5d7cd29207637550f019f1bdc744a541b696c3
Parents: 88bc3fb
Author: Ganesh Murthy <gmur...@redhat.com>
Authored: Tue Jun 19 11:44:45 2018 -0400
Committer: Ganesh Murthy <gmur...@redhat.com>
Committed: Tue Jun 19 11:44:45 2018 -0400

----------------------------------------------------------------------
 src/router_core/transfer.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/6d5d7cd2/src/router_core/transfer.c
----------------------------------------------------------------------
diff --git a/src/router_core/transfer.c b/src/router_core/transfer.c
index f3a6f3d..dfaaf35 100644
--- a/src/router_core/transfer.c
+++ b/src/router_core/transfer.c
@@ -795,7 +795,9 @@ static long qdr_addr_path_count_CT(qdr_address_t *addr)
 
 static void qdr_link_forward_CT(qdr_core_t *core, qdr_link_t *link, 
qdr_delivery_t *dlv, qdr_address_t *addr, bool more)
 {
-    core->deliveries_ingress++;
+    if (dlv->link->link_type == QD_LINK_ENDPOINT)
+        core->deliveries_ingress++;
+
     if (addr && addr == link->owning_addr && qdr_addr_path_count_CT(addr) == 
0) {
         //
         // We are trying to forward a delivery on an address that has no 
outbound paths


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

Reply via email to