• Michael Jerris's avatar
    refactor switch_core_sql_thread with the following main changes: · e4947bfb
    Michael Jerris 提交于
    Do the entire transaction as a single exec, instead of 3 separate ones to resolve issue of unmatched transaction error.
    try really hard to commit the transaction (1000 times) but we no longer try forever.  If 1000 times fail, you will lose some update/insert/deletes from the core db, but we will no longer continue to loop forever and stop processing the sql queue in the case of an error.
    added better overflow protection to the buffer, we now ignore sql strings we get over 64k. (not full transactions, just individual sql strings that we get queued).  Previously this caused a buffer overflow.
    We now use sprintf instead of snprintf as we are already handling overflow checks outside of the sprintf.
    
    
    git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4338 d0543943-73ff-0310-b7d9-9358b9ac24b2
    e4947bfb
名称
最后提交
最后更新
build 正在载入提交数据...
conf 正在载入提交数据...
docs 正在载入提交数据...
libs 正在载入提交数据...
scripts 正在载入提交数据...
src 正在载入提交数据...
support 正在载入提交数据...
w32 正在载入提交数据...
.indent.pro 正在载入提交数据...
AUTHORS 正在载入提交数据...
COPYING 正在载入提交数据...
ChangeLog 正在载入提交数据...
Freeswitch.sln 正在载入提交数据...
INSTALL 正在载入提交数据...
Makefile.am 正在载入提交数据...
Makefile.in 正在载入提交数据...
NEWS 正在载入提交数据...
README 正在载入提交数据...
aclocal.m4 正在载入提交数据...
acsite.m4 正在载入提交数据...
build.sh 正在载入提交数据...
configure 正在载入提交数据...
configure.in 正在载入提交数据...
generic_mod.mk 正在载入提交数据...
indent_options.sh 正在载入提交数据...
modules.conf.in 正在载入提交数据...