]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_lcr: use switch_cache_db_dismiss_db_handle to reduce persistant
authorRupa Schomaker <rupa@rupa.com>
Tue, 29 Jun 2010 21:04:45 +0000 (16:04 -0500)
committerRupa Schomaker <rupa@rupa.com>
Tue, 29 Jun 2010 21:04:45 +0000 (16:04 -0500)
db connections under heavy load.

src/mod/applications/mod_lcr/mod_lcr.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 0e45be3..3399417
@@ -445,7 +445,7 @@ static switch_bool_t db_check(char *sql)
                }
        }
 
-       switch_cache_db_release_db_handle(&dbh);
+       switch_cache_db_dismiss_db_handle(&dbh);
        return ret;
 }
 
@@ -581,7 +581,7 @@ static switch_bool_t lcr_execute_sql_callback(char *sql, switch_core_db_callback
                        retval = SWITCH_TRUE;
                }
        }
-       switch_cache_db_release_db_handle(&dbh);
+       switch_cache_db_dismiss_db_handle(&dbh);
        return retval;
 }
 
@@ -1175,7 +1175,7 @@ static switch_status_t lcr_load_config()
        }
 
 done:
-       switch_cache_db_release_db_handle(&dbh);
+       switch_cache_db_dismiss_db_handle(&dbh);
        switch_xml_free(xml);
        return status;
 }