]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5313 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 17 Apr 2013 22:33:42 +0000 (17:33 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 17 Apr 2013 22:33:42 +0000 (17:33 -0500)
src/switch_core_sqldb.c

index a3bb66c08aa9e730890d8b3197e0ec7de0dc14e0..a8fe4107c703ddd15734fbcdb20ac9a825c8e770 100644 (file)
@@ -3238,8 +3238,12 @@ switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_
                                //runtime.odbc_dsn = NULL;
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Database Error [%s]\n", err);
                                //switch_cache_db_release_db_handle(&sql_manager.dbh);
-                               free(err);
-                               goto top;
+                                if (switch_stristr("read-only", err)) { 
+                                        free(err);
+                                } else {
+                                        free(err);
+                                        goto top;
+                                }
                        }
                }
                break;