Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
12f28a4a
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
12f28a4a
编写于
4月 24, 2023
作者:
B
Benguang Zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
enh: unify error msg for no disk space
上级
f22d279f
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
18 addition
and
15 deletion
+18
-15
source/libs/executor/src/groupoperator.c
source/libs/executor/src/groupoperator.c
+2
-2
source/libs/executor/src/timewindowoperator.c
source/libs/executor/src/timewindowoperator.c
+2
-2
source/libs/executor/src/tlinearhash.c
source/libs/executor/src/tlinearhash.c
+2
-2
source/libs/executor/src/tsort.c
source/libs/executor/src/tsort.c
+4
-5
source/libs/function/src/builtinsimpl.c
source/libs/function/src/builtinsimpl.c
+6
-2
source/libs/function/src/tpercentile.c
source/libs/function/src/tpercentile.c
+1
-1
source/libs/function/src/udfd.c
source/libs/function/src/udfd.c
+1
-1
未找到文件。
source/libs/executor/src/groupoperator.c
浏览文件 @
12f28a4a
...
...
@@ -871,9 +871,9 @@ SOperatorInfo* createPartitionOperatorInfo(SOperatorInfo* downstream, SPartition
getBufferPgSize
(
pInfo
->
binfo
.
pRes
->
info
.
rowSize
,
&
defaultPgsz
,
&
defaultBufsz
);
if
(
!
osTempSpaceAvailable
())
{
terrno
=
TSDB_CODE_NO_
AVAIL_DISK
;
terrno
=
TSDB_CODE_NO_
DISKSPACE
;
pTaskInfo
->
code
=
terrno
;
qError
(
"Create partition operator info failed since %s
"
,
terrstr
(
terrno
)
);
qError
(
"Create partition operator info failed since %s
, tempDir:%s"
,
terrstr
(),
tsTempDir
);
goto
_error
;
}
...
...
source/libs/executor/src/timewindowoperator.c
浏览文件 @
12f28a4a
...
...
@@ -2911,8 +2911,8 @@ int32_t initStreamAggSupporter(SStreamAggSupporter* pSup, SqlFunctionCtx* pCtx,
bufSize
=
pageSize
*
4
;
}
if
(
!
osTempSpaceAvailable
())
{
terrno
=
TSDB_CODE_NO_
AVAIL_DISK
;
qError
(
"Init stream agg supporter failed since %s
"
,
terrstr
(
terrno
)
);
terrno
=
TSDB_CODE_NO_
DISKSPACE
;
qError
(
"Init stream agg supporter failed since %s
, tempDir:%s"
,
terrstr
(),
tsTempDir
);
return
terrno
;
}
int32_t
code
=
createDiskbasedBuf
(
&
pSup
->
pResultBuf
,
pageSize
,
bufSize
,
"function"
,
tsTempDir
);
...
...
source/libs/executor/src/tlinearhash.c
浏览文件 @
12f28a4a
...
...
@@ -248,8 +248,8 @@ SLHashObj* tHashInit(int32_t inMemPages, int32_t pageSize, _hash_fn_t fn, int32_
}
if
(
!
osTempSpaceAvailable
())
{
terrno
=
TSDB_CODE_NO_
AVAIL_DISK
;
printf
(
"tHash Init failed since %s
"
,
terrstr
(
terrno
)
);
terrno
=
TSDB_CODE_NO_
DISKSPACE
;
printf
(
"tHash Init failed since %s
, tempDir:%s"
,
terrstr
(),
tsTempDir
);
taosMemoryFree
(
pHashObj
);
return
NULL
;
}
...
...
source/libs/executor/src/tsort.c
浏览文件 @
12f28a4a
...
...
@@ -195,8 +195,8 @@ static int32_t doAddToBuf(SSDataBlock* pDataBlock, SSortHandle* pHandle) {
if
(
pHandle
->
pBuf
==
NULL
)
{
if
(
!
osTempSpaceAvailable
())
{
terrno
=
TSDB_CODE_NO_
AVAIL_DISK
;
qError
(
"Add to buf failed since %s
"
,
terrstr
(
terrno
)
);
terrno
=
TSDB_CODE_NO_
DISKSPACE
;
qError
(
"Add to buf failed since %s
, tempDir:%s"
,
terrstr
(),
tsTempDir
);
return
terrno
;
}
...
...
@@ -261,9 +261,8 @@ static int32_t sortComparInit(SMsortComparParam* pParam, SArray* pSources, int32
// multi-pass internal merge sort is required
if
(
pHandle
->
pBuf
==
NULL
)
{
if
(
!
osTempSpaceAvailable
())
{
code
=
TSDB_CODE_NO_AVAIL_DISK
;
terrno
=
code
;
qError
(
"Sort compare init failed since %s, %s"
,
tstrerror
(
code
),
pHandle
->
idStr
);
code
=
terrno
=
TSDB_CODE_NO_DISKSPACE
;
qError
(
"Sort compare init failed since %s, tempDir:%s, idStr:%s"
,
terrstr
(),
tsTempDir
,
pHandle
->
idStr
);
return
code
;
}
...
...
source/libs/function/src/builtinsimpl.c
浏览文件 @
12f28a4a
...
...
@@ -855,7 +855,9 @@ int32_t setSelectivityValue(SqlFunctionCtx* pCtx, SSDataBlock* pBlock, const STu
int32_t
numOfCols
=
pCtx
->
subsidiaries
.
num
;
const
char
*
p
=
loadTupleData
(
pCtx
,
pTuplePos
);
if
(
p
==
NULL
)
{
terrno
=
TSDB_CODE_NO_AVAIL_DISK
;
terrno
=
TSDB_CODE_NOT_FOUND
;
qError
(
"Load tuple data failed since %s, groupId:%"
PRIu64
", ts:%"
PRId64
,
terrstr
(),
pTuplePos
->
streamTupleKey
.
groupId
,
pTuplePos
->
streamTupleKey
.
ts
);
return
terrno
;
}
...
...
@@ -5098,7 +5100,9 @@ int32_t modeFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock) {
if
(
maxCount
!=
0
)
{
const
char
*
pData
=
loadTupleData
(
pCtx
,
&
resDataPos
);
if
(
pData
==
NULL
)
{
code
=
TSDB_CODE_NO_AVAIL_DISK
;
code
=
terrno
=
TSDB_CODE_NOT_FOUND
;
qError
(
"Load tuple data failed since %s, groupId:%"
PRIu64
", ts:%"
PRId64
,
terrstr
(),
resDataPos
.
streamTupleKey
.
groupId
,
resDataPos
.
streamTupleKey
.
ts
);
modeFunctionCleanup
(
pInfo
);
return
code
;
}
...
...
source/libs/function/src/tpercentile.c
浏览文件 @
12f28a4a
...
...
@@ -277,7 +277,7 @@ tMemBucket *tMemBucketCreate(int16_t nElemSize, int16_t dataType, double minval,
resetSlotInfo
(
pBucket
);
if
(
!
osTempSpaceAvailable
())
{
terrno
=
TSDB_CODE_NO_
AVAIL_DISK
;
terrno
=
TSDB_CODE_NO_
DISKSPACE
;
// qError("MemBucket create disk based Buf failed since %s", terrstr(terrno));
tMemBucketDestroy
(
pBucket
);
return
NULL
;
...
...
source/libs/function/src/udfd.c
浏览文件 @
12f28a4a
...
...
@@ -844,7 +844,7 @@ void udfdGetFuncBodyPath(const SUdf *udf, char *path) {
int32_t
udfdSaveFuncBodyToFile
(
SFuncInfo
*
pFuncInfo
,
SUdf
*
udf
)
{
if
(
!
osDataSpaceAvailable
())
{
terrno
=
TSDB_CODE_NO_
AVAIL_DISK
;
terrno
=
TSDB_CODE_NO_
DISKSPACE
;
fnError
(
"udfd create shared library failed since %s"
,
terrstr
(
terrno
));
return
terrno
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录