[ 
https://issues.apache.org/jira/browse/DISPATCH-2201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17382683#comment-17382683
 ] 

ASF GitHub Bot commented on DISPATCH-2201:
------------------------------------------

jiridanek merged pull request #1302:
URL: https://github.com/apache/qpid-dispatch/pull/1302


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


> 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
>            Priority: Major
>             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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to