mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
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:
1 parent
3212a526a3
commit
58cae7723f
2 files changed
+56
-29
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user