improve skinny behavior in HA deployment
This commit is contained in:
parent
0e5f90c086
commit
8a3cdc75fc
|
@ -1995,10 +1995,10 @@ static switch_status_t load_skinny_config(void)
|
|||
|
||||
|
||||
if ((dbh = skinny_get_db_handle(profile))) {
|
||||
switch_cache_db_test_reactive(dbh, "DELETE FROM skinny_devices", "DROP TABLE skinny_devices", devices_sql);
|
||||
switch_cache_db_test_reactive(dbh, "DELETE FROM skinny_lines", "DROP TABLE skinny_lines", lines_sql);
|
||||
switch_cache_db_test_reactive(dbh, "DELETE FROM skinny_buttons", "DROP TABLE skinny_buttons", buttons_sql);
|
||||
switch_cache_db_test_reactive(dbh, "DELETE FROM skinny_active_lines", "DROP TABLE skinny_active_lines", active_lines_sql);
|
||||
switch_cache_db_test_reactive(dbh, "select count(*) from skinny_devices", NULL, devices_sql);
|
||||
switch_cache_db_test_reactive(dbh, "select count(*) from skinny_lines", NULL, lines_sql);
|
||||
switch_cache_db_test_reactive(dbh, "select count(*) from skinny_buttons", NULL, buttons_sql);
|
||||
switch_cache_db_test_reactive(dbh, "select count(*) from skinny_active_lines", NULL, active_lines_sql);
|
||||
switch_cache_db_release_db_handle(&dbh);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue