From: Nathan Neulinger Date: Thu, 27 Jun 2013 02:56:10 +0000 (-0500) Subject: improve skinny behavior in HA deployment X-Git-Tag: v1.5.3~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fefae03fd9b540baf6a634d5c4527e381af004e;p=thirdparty%2Ffreeswitch.git improve skinny behavior in HA deployment --- diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index 7dff9b7209..f5c01481d4 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -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); }