You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2020/07/22 20:06:31 UTC
[qpid-dispatch] branch master updated: DISPATCH-1709: propagate
address loss to edges
This is an automated email from the ASF dual-hosted git repository.
chug pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push:
new 58c8ff7 DISPATCH-1709: propagate address loss to edges
58c8ff7 is described below
commit 58c8ff72e738857dc7d63a4a0792df3ad3547f6d
Author: Chuck Rolke <ch...@apache.org>
AuthorDate: Wed Jul 22 16:05:42 2020 -0400
DISPATCH-1709: propagate address loss to edges
Handle QDRC EVENT ADDR_NO_LONGER_DEST the same way as
ADDR_NO_LONGER_LOCAL_DEST by notifying edges of address loss.
This closes #778
---
src/router_core/modules/edge_addr_tracking/edge_addr_tracking.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/router_core/modules/edge_addr_tracking/edge_addr_tracking.c b/src/router_core/modules/edge_addr_tracking/edge_addr_tracking.c
index 2fa7bff..dfc11e9 100644
--- a/src/router_core/modules/edge_addr_tracking/edge_addr_tracking.c
+++ b/src/router_core/modules/edge_addr_tracking/edge_addr_tracking.c
@@ -249,6 +249,10 @@ static void on_addr_event(void *context, qdrc_event_t event, qdr_address_t *addr
}
break;
+ case QDRC_EVENT_ADDR_NO_LONGER_DEST :
+
+ // fallthrough
+
case QDRC_EVENT_ADDR_NO_LONGER_LOCAL_DEST : {
// The address no longer has any local destinations.
// If there are no remote destinations either, we have to tell the edge routers to delete their sender links
@@ -402,7 +406,7 @@ static void qdrc_edge_address_tracking_init_CT(qdr_core_t *core, void **module_c
//
context->event_sub = qdrc_event_subscribe_CT(core,
QDRC_EVENT_ADDR_BECAME_LOCAL_DEST | QDRC_EVENT_ADDR_ONE_LOCAL_DEST |
- QDRC_EVENT_ADDR_NO_LONGER_LOCAL_DEST | QDRC_EVENT_ADDR_BECAME_DEST | QDRC_EVENT_ADDR_TWO_DEST |
+ QDRC_EVENT_ADDR_NO_LONGER_LOCAL_DEST | QDRC_EVENT_ADDR_BECAME_DEST | QDRC_EVENT_ADDR_TWO_DEST | QDRC_EVENT_ADDR_NO_LONGER_DEST |
QDRC_EVENT_LINK_EDGE_DATA_ATTACHED | QDRC_EVENT_LINK_EDGE_DATA_DETACHED,
0,
on_link_event,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org