[Freeswitch-svn] [commit] r9879 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Tue Oct 7 13:56:54 EDT 2008


Author: anthm
Date: Tue Oct  7 13:56:54 2008
New Revision: 9879

Modified:
   freeswitch/trunk/src/switch_core_db.c
   freeswitch/trunk/src/switch_core_sqldb.c

Log:
hide harmless sql warning

Modified: freeswitch/trunk/src/switch_core_db.c
==============================================================================
--- freeswitch/trunk/src/switch_core_db.c	(original)
+++ freeswitch/trunk/src/switch_core_db.c	Tue Oct  7 13:56:54 2008
@@ -78,7 +78,7 @@
 SWITCH_DECLARE(int) switch_core_db_exec(switch_core_db_t *db, const char *sql, switch_core_db_callback_func_t callback, void *data, char **errmsg)
 {
 	int ret = 0;
-	int sane = 100;
+	int sane = 500;
 	char *err = NULL;
 
 	while (--sane > 0) {
@@ -86,7 +86,7 @@
 		if (ret == SQLITE_BUSY || ret == SQLITE_LOCKED) {
 			if (sane > 1) {
 				switch_safe_free(err);
-				switch_yield(1000);
+				switch_yield(20000);
 				continue;
 			}
 		} else {

Modified: freeswitch/trunk/src/switch_core_sqldb.c
==============================================================================
--- freeswitch/trunk/src/switch_core_sqldb.c	(original)
+++ freeswitch/trunk/src/switch_core_sqldb.c	Tue Oct  7 13:56:54 2008
@@ -128,7 +128,7 @@
 	while (retries > 0) {
 		switch_core_db_exec(db, sql, NULL, NULL, &errmsg);
 		if (errmsg) {
-			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SQL ERR [%s]\n", errmsg);
+			//switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SQL ERR [%s]\n", errmsg);
 			switch_core_db_free(errmsg);
 			switch_yield(100000);
 			retries--;



More information about the Freeswitch-svn mailing list