]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11866: [Core] FreeSWITCH Core no longer loads if database fails to connect.
authorAndrey Volk <andywolk@gmail.com>
Wed, 29 May 2019 19:06:22 +0000 (23:06 +0400)
committerAndrey Volk <andywolk@gmail.com>
Wed, 29 May 2019 19:07:14 +0000 (23:07 +0400)
src/switch_core_sqldb.c

index 49a10e06c3aa8b35f2f8bb948421175a7a7a0856..02e6897778625cff41655c93203d352963543ec3 100644 (file)
@@ -3380,13 +3380,7 @@ switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_
                        return SWITCH_STATUS_FALSE;
                }
 
-               if (runtime.odbc_dsn) {
-                       runtime.odbc_dsn = NULL;
-                       runtime.odbc_dbtype = DBTYPE_DEFAULT;
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Falling back to core_db.\n");
-                       goto top;
-               }
-
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "CORE DATABASE INITIALIZATION FAILURE! CHECK `core-db-dsn`!\n");
 
                switch_clear_flag((&runtime), SCF_USE_SQL);
                return SWITCH_STATUS_FALSE;