[asterisk-commits] tilghman: branch tilghman/cdr_custom_odbc r64822 - /team/tilghman/cdr_custom_...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 17 14:25:50 MST 2007


Author: tilghman
Date: Thu May 17 16:25:49 2007
New Revision: 64822

URL: http://svn.digium.com/view/asterisk?view=rev&rev=64822
Log:
Result of fixing documentation

Modified:
    team/tilghman/cdr_custom_odbc/cdr/cdr_adaptive_odbc.c

Modified: team/tilghman/cdr_custom_odbc/cdr/cdr_adaptive_odbc.c
URL: http://svn.digium.com/view/asterisk/team/tilghman/cdr_custom_odbc/cdr/cdr_adaptive_odbc.c?view=diff&rev=64822&r1=64821&r2=64822
==============================================================================
--- team/tilghman/cdr_custom_odbc/cdr/cdr_adaptive_odbc.c (original)
+++ team/tilghman/cdr_custom_odbc/cdr/cdr_adaptive_odbc.c Thu May 17 16:25:49 2007
@@ -288,7 +288,7 @@
 	SQLHSTMT stmt = NULL;
 	SQLINTEGER rows = 0;
 
-	if (!AST_RWLIST_RDLOCK(&odbc_tables)) {
+	if (AST_RWLIST_RDLOCK(&odbc_tables)) {
 		ast_log(LOG_ERROR, "Unable to lock table list.  Insert CDR(s) failed.\n");
 		return -1;
 	}
@@ -549,7 +549,7 @@
 {
 	ast_cdr_unregister(name);
 	usleep(1);
-	if (!AST_RWLIST_WRLOCK(&odbc_tables)) {
+	if (AST_RWLIST_WRLOCK(&odbc_tables)) {
 		ast_cdr_register(name, ast_module_info->description, odbc_log);
 		ast_log(LOG_ERROR, "Unable to lock column list.  Unload failed.\n");
 		return -1;
@@ -562,7 +562,7 @@
 
 static int load_module(void)
 {
-	if (!AST_RWLIST_WRLOCK(&odbc_tables)) {
+	if (AST_RWLIST_WRLOCK(&odbc_tables)) {
 		ast_log(LOG_ERROR, "Unable to lock column list.  Load failed.\n");
 		return 0;
 	}
@@ -575,7 +575,7 @@
 
 static int reload(void)
 {
-	if (!AST_RWLIST_WRLOCK(&odbc_tables)) {
+	if (AST_RWLIST_WRLOCK(&odbc_tables)) {
 		ast_log(LOG_ERROR, "Unable to lock column list.  Reload failed.\n");
 		return -1;
 	}



More information about the asterisk-commits mailing list