fix bottleneck in sql thread

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10858 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2008-12-17 20:43:13 +00:00
1 parent 3212a526a3
commit 58cae7723f
2 files changed
+56 -29

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ SWITCH_DECLARE(int) switch_core_db_exec(switch_core_db_t *db, const char *sql, s
if (ret == SQLITE_BUSY || ret == SQLITE_LOCKED) {
if (sane > 1) {
switch_safe_free(err);
switch_yield(20000);
switch_cond_next();
continue;
}
} else {