mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 12:07:06 +00:00
Revert "switch to switch_cache_db_dismiss_db_handle to reduce odbc"
This reverts commit ab3d7d144e.
This commit is contained in:
1 parent
9741086975
commit
612356b7b6
2 files changed
+4
-5
No files matched your search
@@ -122,7 +122,7 @@ static switch_status_t limit_execute_sql(char *sql)
|
||||
|
||||
end:
|
||||
|
||||
switch_cache_db_dismiss_db_handle(&dbh);
|
||||
switch_cache_db_release_db_handle(&dbh);
|
||||
|
||||
return status;
|
||||
}
|
||||
@@ -148,7 +148,7 @@ static switch_bool_t limit_execute_sql_callback(char *sql, switch_core_db_callba
|
||||
|
||||
end:
|
||||
|
||||
switch_cache_db_dismiss_db_handle(&dbh);
|
||||
switch_cache_db_release_db_handle(&dbh);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -344,7 +344,6 @@ static switch_status_t do_config()
|
||||
sql = switch_mprintf("delete from limit_data where hostname='%q';", globals.hostname);
|
||||
limit_execute_sql(sql);
|
||||
switch_safe_free(sql);
|
||||
switch_cache_db_dismiss_db_handle(&dbh); /* try to really free the connection */
|
||||
}
|
||||
|
||||
return status;
|
||||
|
||||
Reference in new issue
Block a user