qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmur...@apache.org
Subject qpid-dispatch git commit: DISPATCH-1062 - Show the owning_addr phase if there is one
Date Tue, 03 Jul 2018 21:20:00 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 3f7871735 -> 31666130b


DISPATCH-1062 - Show the owning_addr phase if there is one


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

Branch: refs/heads/master
Commit: 31666130b42327b9a2219c1898e3d7c9321e0023
Parents: 3f78717
Author: Ganesh Murthy <gmurthy@redhat.com>
Authored: Tue Jul 3 17:19:45 2018 -0400
Committer: Ganesh Murthy <gmurthy@redhat.com>
Committed: Tue Jul 3 17:19:45 2018 -0400

----------------------------------------------------------------------
 src/router_core/agent_link.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/31666130/src/router_core/agent_link.c
----------------------------------------------------------------------
diff --git a/src/router_core/agent_link.c b/src/router_core/agent_link.c
index 8908312..b2d7dbf 100644
--- a/src/router_core/agent_link.c
+++ b/src/router_core/agent_link.c
@@ -123,12 +123,12 @@ static void qdr_agent_write_column_CT(qd_composed_field_t *body, int
col, qdr_li
         break;
 
     case QDR_LINK_OWNING_ADDR:
-        if(link->terminus_addr)
-            qd_compose_insert_string(body, link->terminus_addr);
+        if(link->owning_addr)
+            qd_compose_insert_string(body, address_key(link->owning_addr));
         else if (link->connected_link && link->connected_link->terminus_addr)
             qd_compose_insert_string(body, link->connected_link->terminus_addr);
-        else if (link->owning_addr)
-            qd_compose_insert_string(body, address_key(link->owning_addr));
+        else if (link->terminus_addr)
+            qd_compose_insert_string(body, link->terminus_addr);
         else
             qd_compose_insert_null(body);
         break;


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


Mime
View raw message