Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
98c2a3b9
提交
98c2a3b9
authored
3月 11, 2014
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
don't nuke tcp and tls reg on restart
上级
70f29089
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
+3
-3
switch_core_sqldb.c
src/switch_core_sqldb.c
+3
-3
没有找到文件。
src/switch_core_sqldb.c
浏览文件 @
98c2a3b9
...
...
@@ -3158,7 +3158,7 @@ switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"select hostname from aliases"
,
"DROP TABLE aliases"
,
create_alias_sql
);
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"select hostname from complete"
,
"DROP TABLE complete"
,
create_complete_sql
);
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"select hostname from nat"
,
"DROP TABLE nat"
,
create_nat_sql
);
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"delete from registrations where reg_user=''
or network_proto='tcp' or network_proto='tls'
"
,
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"delete from registrations where reg_user=''"
,
"DROP TABLE registrations"
,
create_registrations_sql
);
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"select metadata from registrations"
,
NULL
,
"ALTER TABLE registrations ADD COLUMN metadata VARCHAR(256)"
);
...
...
@@ -3185,11 +3185,11 @@ switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"select * from basic_calls where sent_callee_name=''"
,
"DROP VIEW basic_calls"
,
basic_calls_sql
);
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"select call_uuid from calls"
,
"DROP TABLE calls"
,
create_calls_sql
);
if
(
runtime
.
odbc_dbtype
==
DBTYPE_DEFAULT
)
{
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"delete from registrations where reg_user=''
or network_proto='tcp' or network_proto='tls'
"
,
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"delete from registrations where reg_user=''"
,
"DROP TABLE registrations"
,
create_registrations_sql
);
}
else
{
char
*
tmp
=
switch_string_replace
(
create_registrations_sql
,
"url TEXT"
,
"url VARCHAR(max)"
);
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"delete from registrations where reg_user=''
or network_proto='tcp' or network_proto='tls'
"
,
switch_cache_db_test_reactive
(
sql_manager
.
dbh
,
"delete from registrations where reg_user=''"
,
"DROP TABLE registrations"
,
tmp
);
free
(
tmp
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论