Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.16.1
-
None
-
None
-
Patch
Description
This type_registered flag is of no benefit for Dispatch as it is now, and it hinders doing repeated broker startups and shutdowns in a single thread (for testing purposes).
static int type_registered = 0; qd_router_t *qd_router(qd_dispatch_t *qd, qd_router_mode_t mode, const char *area, const char *id) { if (!type_registered) { type_registered = 1; qd_container_register_node_type(qd, &router_node); }
As per the mailing list discussion http://mail-archives.apache.org/mod_mbox/qpid-users/202107.mbox/browser, this code can be safely removed.