]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
sqlite can't handle bi-directional mutexing
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 7 Mar 2013 00:01:55 +0000 (18:01 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 7 Mar 2013 00:02:01 +0000 (18:02 -0600)
src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/endpoints/mod_sofia/sofia_glue.c

index f0d0ab280ba67989831406e1484a6c2644006008..241cf88c2d434aae8d81ef33d21ba40174a8d459 100644 (file)
@@ -5262,9 +5262,9 @@ static void general_event_handler(switch_event_t *event)
                                }
 
 
-                               switch_mutex_lock(profile->ireg_mutex);
+                               switch_mutex_lock(profile->dbh_mutex);
                                sofia_glue_execute_sql_callback(profile, NULL, sql, notify_callback, profile);
-                               switch_mutex_unlock(profile->ireg_mutex);
+                               switch_mutex_unlock(profile->dbh_mutex);
                                sofia_glue_release_profile(profile);
 
                                free(sql);
index 5c40dc10bef8223520f9b161c5e68a25145d3b39..0d764391bdedda2bee0967816fdb3a30b92e1827 100644 (file)
@@ -6414,9 +6414,9 @@ void sofia_glue_execute_sql_now(sofia_profile_t *profile, char **sqlp, switch_bo
        switch_assert(sqlp && *sqlp);
        sql = *sqlp;    
 
-       switch_mutex_lock(profile->ireg_mutex);
+       switch_mutex_lock(profile->dbh_mutex);
        switch_sql_queue_manager_push_confirm(profile->qm, sql, 0, !sql_already_dynamic);
-       switch_mutex_unlock(profile->ireg_mutex);
+       switch_mutex_unlock(profile->dbh_mutex);
 
        if (sql_already_dynamic) {
                *sqlp = NULL;