mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 09:32:34 +00:00
change commit factor on sql thread
This commit is contained in:
parent
7fee1fd157
commit
0a21da5aab
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
#include "private/switch_core_pvt.h"
|
#include "private/switch_core_pvt.h"
|
||||||
//*#define DEBUG_SQL 1
|
//#define DEBUG_SQL 1
|
||||||
|
|
||||||
struct switch_cache_db_handle {
|
struct switch_cache_db_handle {
|
||||||
char name[CACHE_DB_LEN];
|
char name[CACHE_DB_LEN];
|
||||||
@ -1052,7 +1052,7 @@ static void *SWITCH_THREAD_FUNC switch_core_sql_thread(switch_thread_t *thread,
|
|||||||
if (!lc) {
|
if (!lc) {
|
||||||
switch_thread_cond_wait(sql_manager.cond, sql_manager.cond_mutex);
|
switch_thread_cond_wait(sql_manager.cond, sql_manager.cond_mutex);
|
||||||
} else if (wrote) {
|
} else if (wrote) {
|
||||||
if (lc > 2000) {
|
if (lc > 200) {
|
||||||
do_sleep = 0;
|
do_sleep = 0;
|
||||||
} else {
|
} else {
|
||||||
do_sleep = 1;
|
do_sleep = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user