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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 24 16:35:16 CDT 2009


Author: mmichelson
Date: Thu Sep 24 16:35:12 2009
New Revision: 220414

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=220414
Log:
Don't reinitialize the monitor's lists every time we find one.


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

Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=220414&r1=220413&r2=220414
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Thu Sep 24 16:35:12 2009
@@ -947,8 +947,6 @@
 		return NULL;
 	}
 
-	AST_LIST_HEAD_INIT(&new_monitor->parent_links);
-	AST_LIST_HEAD_INIT(&new_monitor->child_links);
 	new_link->child = cc_ref(new_monitor, "Link's child reference");
 	new_link->parent = cc_ref(parent, "Link's parent reference");
 	new_link->core_id = core_id;
@@ -1159,6 +1157,7 @@
 	 */
 	AST_LIST_TRAVERSE(&monitor->parent_links, link, next_parent) {
 		if (!link->is_suspended) {
+			ast_log(LOG_NOTICE, "Selected link with core_id %d\n", link->core_id);
 			break;
 		}
 	}




More information about the asterisk-commits mailing list