add retry on lock to core sql func

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6508 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-12-04 23:16:43 +00:00
parent c26098bac2
commit 552fd37e1c
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ SWITCH_DECLARE(const char *) switch_core_db_errmsg(switch_core_db_t *db)
SWITCH_DECLARE(int) switch_core_db_exec(switch_core_db_t *db, const char *sql, switch_core_db_callback_func_t callback, void *data, char **errmsg)
{
int ret;
int ret = 0;
int sane = 100;
while(--sane > 0) {