]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix spelling err
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 14 Sep 2010 21:22:21 +0000 (16:22 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 14 Sep 2010 21:22:21 +0000 (16:22 -0500)
src/mod/endpoints/mod_sofia/sofia.c
src/switch_core_sqldb.c

index 2ae5048b0697b68dc3a939bed51c982eca2b70ae..dd376981ab51a548426ce825dfc86ac1216e3a55 100644 (file)
@@ -1256,7 +1256,7 @@ void *SWITCH_THREAD_FUNC sofia_profile_worker_thread_run(switch_thread_t *thread
                if (sofia_test_pflag(profile, PFLAG_SQL_IN_TRANS)) {
                        if (qsize > 0 && (qsize >= 1024 || ++loop_count >= profile->trans_timeout)) {
                                switch_size_t newlen;
-                               uint32_t itterations = 0;
+                               uint32_t iterations = 0;
                                switch_size_t len = 0;
 
                                switch_mutex_lock(profile->ireg_mutex);
@@ -1265,7 +1265,7 @@ void *SWITCH_THREAD_FUNC sofia_profile_worker_thread_run(switch_thread_t *thread
                                        if (!sql) sql = (char *) pop;
 
                                        newlen = strlen(sql) + 2;
-                                       itterations++;
+                                       iterations++;
 
                                        if (len + newlen + 10 > sql_len) {
                                                int new_mlen = len + newlen + 10 + 10240;
index dfb4134b9bac3f61817f8525024edf9e7dd7cf3a..5772e9f94d8ca842e4b6c2c134903e706cff7642 100644 (file)
@@ -851,7 +851,7 @@ SWITCH_DECLARE(switch_bool_t) switch_cache_db_test_reactive(switch_cache_db_hand
 static void *SWITCH_THREAD_FUNC switch_core_sql_thread(switch_thread_t *thread, void *obj)
 {
        void *pop;
-       uint32_t itterations = 0;
+       uint32_t iterations = 0;
        uint8_t trans = 0;
        uint32_t target = 20000;
        switch_size_t len = 0, sql_len = runtime.sql_buffer_len;
@@ -910,7 +910,7 @@ static void *SWITCH_THREAD_FUNC switch_core_sql_thread(switch_thread_t *thread,
                        if (sql) {
                                newlen = strlen(sql) + 2;
 
-                               if (itterations == 0) {
+                               if (iterations == 0) {
                                        trans = 1;
                                }
 
@@ -935,7 +935,7 @@ static void *SWITCH_THREAD_FUNC switch_core_sql_thread(switch_thread_t *thread,
                                        }
                                }
 
-                               itterations++;                          
+                               iterations++;                           
                                sprintf(sqlbuf + len, "%s;\n", sql);
                                len += newlen;
                                free(sql);
@@ -950,14 +950,14 @@ static void *SWITCH_THREAD_FUNC switch_core_sql_thread(switch_thread_t *thread,
                
                lc = sql ? 1 : 0 + switch_queue_size(sql_manager.sql_queue[0]) + switch_queue_size(sql_manager.sql_queue[1]);
                
-               if (trans && itterations && (itterations > target || !lc)) {
+               if (trans && iterations && (iterations > target || !lc)) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, 
-                                                         "RUN %d %d %d\n", switch_queue_size(sql_manager.sql_queue[0]), switch_queue_size(sql_manager.sql_queue[1]), itterations);
+                                                         "RUN %d %d %d\n", switch_queue_size(sql_manager.sql_queue[0]), switch_queue_size(sql_manager.sql_queue[1]), iterations);
                        if (switch_cache_db_persistant_execute_trans(sql_manager.event_db, sqlbuf, 1) != SWITCH_STATUS_SUCCESS) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "SQL thread unable to commit transaction, records lost!\n");
                        }
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "DONE\n");
-                       itterations = 0;
+                       iterations = 0;
                        trans = 0;
                        len = 0;
                        *sqlbuf = '\0';