FS-3436 --resolve
This commit is contained in:
parent
db5f504678
commit
6d03eb34f9
|
@ -965,11 +965,18 @@ static void *SWITCH_THREAD_FUNC switch_core_sql_thread(switch_thread_t *thread,
|
||||||
|
|
||||||
switch_mutex_lock(sql_manager.cond_mutex);
|
switch_mutex_lock(sql_manager.cond_mutex);
|
||||||
|
|
||||||
|
switch (sql_manager.event_db->type) {
|
||||||
|
case SCDB_TYPE_ODBC:
|
||||||
|
break;
|
||||||
|
case SCDB_TYPE_CORE_DB:
|
||||||
|
{
|
||||||
switch_cache_db_execute_sql(sql_manager.event_db, "PRAGMA synchronous=OFF;", NULL);
|
switch_cache_db_execute_sql(sql_manager.event_db, "PRAGMA synchronous=OFF;", NULL);
|
||||||
switch_cache_db_execute_sql(sql_manager.event_db, "PRAGMA count_changes=OFF;", NULL);
|
switch_cache_db_execute_sql(sql_manager.event_db, "PRAGMA count_changes=OFF;", NULL);
|
||||||
switch_cache_db_execute_sql(sql_manager.event_db, "PRAGMA temp_store=MEMORY;", NULL);
|
switch_cache_db_execute_sql(sql_manager.event_db, "PRAGMA temp_store=MEMORY;", NULL);
|
||||||
switch_cache_db_execute_sql(sql_manager.event_db, "PRAGMA journal_mode=OFF;", NULL);
|
switch_cache_db_execute_sql(sql_manager.event_db, "PRAGMA journal_mode=OFF;", NULL);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
while (sql_manager.thread_running == 1) {
|
while (sql_manager.thread_running == 1) {
|
||||||
if (save_sql || switch_queue_trypop(sql_manager.sql_queue[0], &pop) == SWITCH_STATUS_SUCCESS ||
|
if (save_sql || switch_queue_trypop(sql_manager.sql_queue[0], &pop) == SWITCH_STATUS_SUCCESS ||
|
||||||
|
|
Loading…
Reference in New Issue