You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2021/07/17 09:19:00 UTC
[jira] [Created] (DISPATCH-2201) Remove the type_registered global
flag in router_node.c
Jiri Daněk created DISPATCH-2201:
------------------------------------
Summary: Remove the type_registered global flag in router_node.c
Key: DISPATCH-2201
URL: https://issues.apache.org/jira/browse/DISPATCH-2201
Project: Qpid Dispatch
Issue Type: Improvement
Affects Versions: 1.16.1
Reporter: Jiri Daněk
Assignee: Jiri Daněk
Fix For: 1.17.0
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).
{code}
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);
}
{code}
https://github.com/apache/qpid-dispatch/blob/d8800269d3a80225794be9914b5fc9f8d6118d04/src/router_node.c#L1623-L1630
As per the mailing list discussion http://mail-archives.apache.org/mod_mbox/qpid-users/202107.mbox/browser, this code can be safely removed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org