Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
6a88d306
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
6a88d306
编写于
10月 10, 2020
作者:
H
Haojun Liao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[td-1641]
上级
83f8316e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
18 deletion
+12
-18
src/client/src/tscSubquery.c
src/client/src/tscSubquery.c
+0
-7
src/client/src/tscUtil.c
src/client/src/tscUtil.c
+1
-1
src/os/src/detail/osSysinfo.c
src/os/src/detail/osSysinfo.c
+2
-2
src/util/src/tcache.c
src/util/src/tcache.c
+9
-8
未找到文件。
src/client/src/tscSubquery.c
浏览文件 @
6a88d306
...
...
@@ -1516,9 +1516,6 @@ static void tscFreeSubSqlObj(SRetrieveSupport *trsupport, SSqlObj *pSql) {
SSqlObj
*
pParentSql
=
trsupport
->
pParentSql
;
assert
(
pSql
==
pParentSql
->
pSubs
[
index
]);
pParentSql
->
pSubs
[
index
]
=
NULL
;
taos_free_result
(
pSql
);
taosTFree
(
trsupport
->
localBuffer
);
taosTFree
(
trsupport
);
}
...
...
@@ -1907,10 +1904,6 @@ static void multiVnodeInsertFinalize(void* param, TAOS_RES* tres, int numOfRows)
pParentObj
->
res
.
code
=
pSql
->
res
.
code
;
}
assert
(
pParentObj
->
pSubs
[
pSupporter
->
index
]
==
tres
);
pParentObj
->
pSubs
[
pSupporter
->
index
]
=
0
;
taos_free_result
(
tres
);
taosTFree
(
pSupporter
);
if
(
atomic_sub_fetch_32
(
&
pState
->
numOfRemain
,
1
)
>
0
)
{
...
...
src/client/src/tscUtil.c
浏览文件 @
6a88d306
...
...
@@ -415,7 +415,7 @@ void tscFreeSqlObj(SSqlObj* pSql) {
tscDebug
(
"%p start to free sqlObj"
,
pSql
);
//
tscFreeSubobj(pSql);
tscFreeSubobj
(
pSql
);
tscPartiallyFreeSqlObj
(
pSql
);
pSql
->
signature
=
NULL
;
...
...
src/os/src/detail/osSysinfo.c
浏览文件 @
6a88d306
...
...
@@ -203,7 +203,7 @@ static void taosGetSystemTimezone() {
snprintf
(
tsTimezone
,
TSDB_TIMEZONE_LEN
,
"%s (%s, %s%02d00)"
,
buf
,
tzname
[
daylight
],
tz
>=
0
?
"+"
:
"-"
,
abs
(
tz
));
// cfg_timezone->cfgStatus = TAOS_CFG_CSTATUS_DEFAULT;
u
Info
(
"timezone not configured, set to system default:%s"
,
tsTimezone
);
u
Warn
(
"timezone not configured, set to system default:%s"
,
tsTimezone
);
}
/*
...
...
@@ -235,7 +235,7 @@ static void taosGetSystemLocale() { // get and set default locale
strcpy
(
tsLocale
,
"en_US.UTF-8"
);
}
else
{
tstrncpy
(
tsLocale
,
locale
,
TSDB_LOCALE_LEN
);
u
Error
(
"locale not configured, set to system default:%s"
,
tsLocale
);
u
Warn
(
"locale not configured, set to system default:%s"
,
tsLocale
);
}
}
...
...
src/util/src/tcache.c
浏览文件 @
6a88d306
...
...
@@ -567,29 +567,30 @@ void taosTrashcanEmpty(SCacheObj *pCacheObj, bool force) {
if
(
pCacheObj
->
numOfElemsInTrash
==
0
)
{
if
(
pCacheObj
->
pTrash
!=
NULL
)
{
pCacheObj
->
pTrash
=
NULL
;
uError
(
"cache:%s, key:inconsistency data in cache, numOfElem in trashcan:%d"
,
pCacheObj
->
name
,
pCacheObj
->
numOfElemsInTrash
);
}
pCacheObj
->
pTrash
=
NULL
;
__cache_unlock
(
pCacheObj
);
return
;
}
STrashElem
*
pElem
=
pCacheObj
->
pTrash
;
const
char
*
stat
[]
=
{
"false"
,
"true"
};
uDebug
(
"cache:%s start to cleanup trashcan, numOfElem in trashcan:%d, free:%s"
,
pCacheObj
->
name
,
pCacheObj
->
numOfElemsInTrash
,
(
force
?
stat
[
1
]
:
stat
[
0
]));
STrashElem
*
pElem
=
pCacheObj
->
pTrash
;
while
(
pElem
)
{
T_REF_VAL_CHECK
(
pElem
->
pData
);
if
(
pElem
->
next
==
pElem
)
{
pElem
->
next
=
NULL
;
}
assert
(
pElem
->
next
!=
pElem
&&
pElem
->
prev
!=
pElem
);
if
(
force
||
(
T_REF_VAL_GET
(
pElem
->
pData
)
==
0
))
{
uDebug
(
"cache:%s, key:%p, %p removed from trashcan. numOfElem in trashcan:%d"
,
pCacheObj
->
name
,
pElem
->
pData
->
key
,
pElem
->
pData
->
data
,
pCacheObj
->
numOfElemsInTrash
-
1
);
STrashElem
*
p
=
pElem
;
pElem
=
doRemoveElemInTrashcan
(
pCacheObj
,
p
);
doDestroyTrashcanElem
(
pCacheObj
,
p
)
;
doRemoveElemInTrashcan
(
pCacheObj
,
pElem
)
;
doDestroyTrashcanElem
(
pCacheObj
,
pElem
);
pElem
=
pCacheObj
->
pTrash
;
}
else
{
pElem
=
pElem
->
next
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录