[Asterisk-code-review] main/pbx: Improve performance of dialplan reloads with a lar... (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Thu Apr 30 17:44:38 CDT 2015


Richard Mudgett has posted comments on this change.

Change subject: main/pbx: Improve performance of dialplan reloads with a large number of hints
......................................................................


Patch Set 5: Code-Review-1

(1 comment)

https://gerrit.asterisk.org/#/c/312/5/main/pbx.c
File main/pbx.c:

Line 1173: 		ao2_t_callback(hintdevices, OBJ_SEARCH_KEY | OBJ_UNLINK | OBJ_NODATA,
         : 			hintdevice_remove_cb, &remove_data, "Remove device from container");
Use ao2_t_callback_data() instead.  The remove_data struct is not going to work with the hash function to get the search key.

ao2_t_callback_data(hintdevice, OBJ_SEARCH_KEY | OBJ_UNLINK | OBJ_NODATA, hintdevice_remove_cb, device, hint, "Remove device from container");

Will also need to update hintdevice_remove_cb() for the ao2_callback_data signature:
typedef int (ao2_callback_data_fn)(void *obj, void *arg, void *data, int flags);


-- 
To view, visit https://gerrit.asterisk.org/312
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Iedfc97a69d21070c50fca42275d7b3e714e59360
Gerrit-PatchSet: 5
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-HasComments: Yes



More information about the asterisk-code-review mailing list