]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
hide harmless sql warning
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 7 Oct 2008 17:56:54 +0000 (17:56 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 7 Oct 2008 17:56:54 +0000 (17:56 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9879 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_db.c
src/switch_core_sqldb.c

index 535424a14d7770bdca4948b6ea36f2368a6faa0f..2bfc8775632d35170bf723876712a622ec26172d 100644 (file)
@@ -78,7 +78,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 = 0;
-       int sane = 100;
+       int sane = 500;
        char *err = NULL;
 
        while (--sane > 0) {
@@ -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(1000);
+                               switch_yield(20000);
                                continue;
                        }
                } else {
index 3b9a510d7f07bf63e69868a73fd857d5aadca977..06bca958596ef11bd244694526cd64831ca93745 100644 (file)
@@ -128,7 +128,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_db_persistant_execute(switch_core_db
        while (retries > 0) {
                switch_core_db_exec(db, sql, NULL, NULL, &errmsg);
                if (errmsg) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SQL ERR [%s]\n", errmsg);
+                       //switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SQL ERR [%s]\n", errmsg);
                        switch_core_db_free(errmsg);
                        switch_yield(100000);
                        retries--;