[svn-commits] branch oej/cdr_radius r28440 - /team/oej/cdr_radius/cdr/cdr_radius.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu May 18 18:39:13 MST 2006


Author: russell
Date: Thu May 18 20:39:12 2006
New Revision: 28440

URL: http://svn.digium.com/view/asterisk?rev=28440&view=rev
Log:
remove unnecessary locking, as discussed in #6639

Modified:
    team/oej/cdr_radius/cdr/cdr_radius.c

Modified: team/oej/cdr_radius/cdr/cdr_radius.c
URL: http://svn.digium.com/view/asterisk/team/oej/cdr_radius/cdr/cdr_radius.c?rev=28440&r1=28439&r2=28440&view=diff
==============================================================================
--- team/oej/cdr_radius/cdr/cdr_radius.c (original)
+++ team/oej/cdr_radius/cdr/cdr_radius.c Thu May 18 20:39:12 2006
@@ -110,8 +110,6 @@
 
 static char radiuscfg[AST_CONFIG_MAX_PATH] = "/etc/radiusclient-ng/radiusclient.conf";
 
-AST_MUTEX_DEFINE_STATIC(rc_lock);
-
 static int global_usegmtime = -1; /*!< log dates and times in UTC */
 static int global_loguniqueid = -1; /*!< log unique id */
 static int global_loguserfield = -1; /*!< log user field */
@@ -281,8 +279,6 @@
 	int result = ERROR_RC;
 	VALUE_PAIR *send = NULL;
 
-	ast_mutex_lock(&rc_lock);	
-	
 	if (!build_radius_record(&send, cdr))
 		ast_log(LOG_WARNING, "Unable to create RADIUS record. CDR not recorded!\n");
 	
@@ -292,8 +288,6 @@
 	else
 		ast_log(LOG_NOTICE, "Failed to record CDR.\n");
 
-	ast_mutex_unlock(&rc_lock);
-
 	return result;
 }
 



More information about the svn-commits mailing list