Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
612356b7
提交
612356b7
authored
7月 05, 2010
作者:
Rupa Schomaker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "switch to switch_cache_db_dismiss_db_handle to reduce odbc"
This reverts commit
ab3d7d14
.
上级
97410869
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
5 行删除
+4
-5
mod_cidlookup.c
src/mod/applications/mod_cidlookup/mod_cidlookup.c
+2
-2
mod_db.c
src/mod/applications/mod_db/mod_db.c
+2
-3
没有找到文件。
src/mod/applications/mod_cidlookup/mod_cidlookup.c
100644 → 100755
浏览文件 @
612356b7
...
@@ -143,7 +143,7 @@ static switch_status_t config_callback_dsn(switch_xml_config_item_t *data, const
...
@@ -143,7 +143,7 @@ static switch_status_t config_callback_dsn(switch_xml_config_item_t *data, const
switch_goto_status
(
SWITCH_STATUS_SUCCESS
,
done
);
switch_goto_status
(
SWITCH_STATUS_SUCCESS
,
done
);
done:
done:
switch_cache_db_
dismiss
_db_handle
(
&
dbh
);
switch_cache_db_
release
_db_handle
(
&
dbh
);
return
status
;
return
status
;
}
}
...
@@ -198,7 +198,7 @@ static switch_bool_t cidlookup_execute_sql_callback(char *sql, switch_core_db_ca
...
@@ -198,7 +198,7 @@ static switch_bool_t cidlookup_execute_sql_callback(char *sql, switch_core_db_ca
*
err
=
switch_core_sprintf
(
cbt
->
pool
,
"Unable to get ODBC handle. dsn: %s, dbh is %s
\n
"
,
globals
.
odbc_dsn
,
dbh
?
"not null"
:
"null"
);
*
err
=
switch_core_sprintf
(
cbt
->
pool
,
"Unable to get ODBC handle. dsn: %s, dbh is %s
\n
"
,
globals
.
odbc_dsn
,
dbh
?
"not null"
:
"null"
);
}
}
switch_cache_db_
dismiss
_db_handle
(
&
dbh
);
switch_cache_db_
release
_db_handle
(
&
dbh
);
return
retval
;
return
retval
;
}
}
...
...
src/mod/applications/mod_db/mod_db.c
浏览文件 @
612356b7
...
@@ -122,7 +122,7 @@ static switch_status_t limit_execute_sql(char *sql)
...
@@ -122,7 +122,7 @@ static switch_status_t limit_execute_sql(char *sql)
end:
end:
switch_cache_db_
dismiss
_db_handle
(
&
dbh
);
switch_cache_db_
release
_db_handle
(
&
dbh
);
return
status
;
return
status
;
}
}
...
@@ -148,7 +148,7 @@ static switch_bool_t limit_execute_sql_callback(char *sql, switch_core_db_callba
...
@@ -148,7 +148,7 @@ static switch_bool_t limit_execute_sql_callback(char *sql, switch_core_db_callba
end:
end:
switch_cache_db_
dismiss
_db_handle
(
&
dbh
);
switch_cache_db_
release
_db_handle
(
&
dbh
);
return
ret
;
return
ret
;
}
}
...
@@ -344,7 +344,6 @@ static switch_status_t do_config()
...
@@ -344,7 +344,6 @@ static switch_status_t do_config()
sql
=
switch_mprintf
(
"delete from limit_data where hostname='%q';"
,
globals
.
hostname
);
sql
=
switch_mprintf
(
"delete from limit_data where hostname='%q';"
,
globals
.
hostname
);
limit_execute_sql
(
sql
);
limit_execute_sql
(
sql
);
switch_safe_free
(
sql
);
switch_safe_free
(
sql
);
switch_cache_db_dismiss_db_handle
(
&
dbh
);
/* try to really free the connection */
}
}
return
status
;
return
status
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论