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:
parent
c26098bac2
commit
552fd37e1c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue