]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
change commit factor on sql thread
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Jun 2011 21:23:40 +0000 (16:23 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Jun 2011 21:24:41 +0000 (16:24 -0500)
src/switch_core_sqldb.c

index 686c5d24de7625558a2a5c22ceb4eb10daaa0ab5..dc307be11ddd2d4c14c474bbbeb2868de47bc38a 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <switch.h>
 #include "private/switch_core_pvt.h"
-//*#define DEBUG_SQL 1
+//#define DEBUG_SQL 1
 
 struct switch_cache_db_handle {
        char name[CACHE_DB_LEN];
@@ -1052,7 +1052,7 @@ static void *SWITCH_THREAD_FUNC switch_core_sql_thread(switch_thread_t *thread,
                if (!lc) {
                        switch_thread_cond_wait(sql_manager.cond, sql_manager.cond_mutex);
                } else if (wrote) {
-                       if (lc > 2000) {
+                       if (lc > 200) {
                                do_sleep = 0;
                        } else {
                                do_sleep = 1;