[asterisk-commits] mmichelson: branch group/CCSS r216002 - /team/group/CCSS/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 3 13:36:13 CDT 2009


Author: mmichelson
Date: Thu Sep  3 13:36:10 2009
New Revision: 216002

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=216002
Log:
Fix a logical error. We should only propagate callbacks on links
with the appropriate core id.


Modified:
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/main/ccss.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=216002&r1=216001&r2=216002
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Thu Sep  3 13:36:10 2009
@@ -1206,6 +1206,9 @@
 {
 	struct ast_cc_monitor_link *link_iter;
 	AST_LIST_TRAVERSE(&monitor->child_links, link_iter, next_child) {
+		if (link_iter->core_id != core_id) {
+			continue;
+		}
 		ast_assert(link_iter->child != NULL);
 		ast_assert(link_iter->child->callbacks != NULL);
 		link_iter->child->callbacks->request_cc(link_iter->child, core_id);
@@ -1224,6 +1227,9 @@
 {
 	struct ast_cc_monitor_link *link_iter;
 	AST_LIST_TRAVERSE(&monitor->child_links, link_iter, next_child) {
+		if (link_iter->core_id != core_id) {
+			continue;
+		}
 		ast_assert(link_iter->child != NULL);
 		ast_assert(link_iter->child->callbacks != NULL);
 		link_iter->child->callbacks->suspend(link_iter->child, core_id);
@@ -1241,6 +1247,9 @@
 {
 	struct ast_cc_monitor_link *link_iter;
 	AST_LIST_TRAVERSE(&monitor->child_links, link_iter, next_child) {
+		if (link_iter->core_id != core_id) {
+			continue;
+		}
 		ast_assert(link_iter->child != NULL);
 		ast_assert(link_iter->child->callbacks != NULL);
 		link_iter->child->callbacks->unsuspend(link_iter->child, core_id);




More information about the asterisk-commits mailing list