Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
174eb2d8
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
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看板
提交
174eb2d8
编写于
5月 28, 2022
作者:
C
Cary Xu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: add more debug logs
上级
b73cf23c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
3 deletion
+18
-3
source/common/src/tdataformat.c
source/common/src/tdataformat.c
+2
-2
source/common/src/tmsg.c
source/common/src/tmsg.c
+2
-0
source/dnode/vnode/src/meta/metaTable.c
source/dnode/vnode/src/meta/metaTable.c
+1
-1
source/libs/parser/src/parTranslater.c
source/libs/parser/src/parTranslater.c
+13
-0
未找到文件。
source/common/src/tdataformat.c
浏览文件 @
174eb2d8
...
...
@@ -619,7 +619,7 @@ void debugPrintSTag(STag *pTag, const char *tag, int32_t ln) {
tagVal
.
cid
=
*
(
int16_t
*
)
POINTER_SHIFT
(
p
,
offset
);
}
printf
(
"%s:%d loop[%d-%d] offset=%d
\n
"
,
__func__
,
__LINE__
,
(
int32_t
)
pTag
->
nTag
,
(
int32_t
)
n
,
(
int32_t
)
offset
);
tGetTagVal
(
p
,
&
tagVal
,
isJson
);
tGetTagVal
(
p
+
offset
,
&
tagVal
,
isJson
);
debugPrintTagVal
(
tagVal
.
type
,
tagVal
.
pData
,
tagVal
.
nData
,
__func__
,
__LINE__
);
}
printf
(
"
\n
"
);
...
...
@@ -703,7 +703,7 @@ int32_t tTagNew(SArray *pArray, int32_t version, int8_t isJson, STag **ppTag) {
ASSERT
(
szTag
<=
INT16_MAX
);
// build tag
(
*
ppTag
)
=
(
STag
*
)
taosMemory
Malloc
(
szTag
);
(
*
ppTag
)
=
(
STag
*
)
taosMemory
Calloc
(
szTag
,
1
);
if
((
*
ppTag
)
==
NULL
)
{
code
=
TSDB_CODE_OUT_OF_MEMORY
;
goto
_err
;
...
...
source/common/src/tmsg.c
浏览文件 @
174eb2d8
...
...
@@ -3847,6 +3847,7 @@ int tEncodeSVCreateTbReq(SEncoder *pCoder, const SVCreateTbReq *pReq) {
if
(
pReq
->
type
==
TSDB_CHILD_TABLE
)
{
if
(
tEncodeI64
(
pCoder
,
pReq
->
ctb
.
suid
)
<
0
)
return
-
1
;
if
(
tEncodeTag
(
pCoder
,
(
const
STag
*
)
pReq
->
ctb
.
pTag
)
<
0
)
return
-
1
;
debugPrintSTag
((
STag
*
)
pReq
->
ctb
.
pTag
,
__func__
,
__LINE__
);
}
else
if
(
pReq
->
type
==
TSDB_NORMAL_TABLE
)
{
if
(
tEncodeSSchemaWrapper
(
pCoder
,
&
pReq
->
ntb
.
schemaRow
)
<
0
)
return
-
1
;
}
else
{
...
...
@@ -3870,6 +3871,7 @@ int tDecodeSVCreateTbReq(SDecoder *pCoder, SVCreateTbReq *pReq) {
if
(
pReq
->
type
==
TSDB_CHILD_TABLE
)
{
if
(
tDecodeI64
(
pCoder
,
&
pReq
->
ctb
.
suid
)
<
0
)
return
-
1
;
if
(
tDecodeTag
(
pCoder
,
(
STag
**
)
&
pReq
->
ctb
.
pTag
)
<
0
)
return
-
1
;
debugPrintSTag
((
STag
*
)
pReq
->
ctb
.
pTag
,
__func__
,
__LINE__
);
}
else
if
(
pReq
->
type
==
TSDB_NORMAL_TABLE
)
{
if
(
tDecodeSSchemaWrapper
(
pCoder
,
&
pReq
->
ntb
.
schemaRow
)
<
0
)
return
-
1
;
}
else
{
...
...
source/dnode/vnode/src/meta/metaTable.c
浏览文件 @
174eb2d8
...
...
@@ -578,7 +578,7 @@ static int metaUpdateTableTagVal(SMeta *pMeta, int64_t version, SVAlterTbReq *pA
STagVal
tagVal
=
{.
cid
=
pCol
->
colId
};
if
(
tTagGet
(
pOldTag
,
&
tagVal
)
&&
tagVal
.
pData
)
{
if
(
IS_VAR_DATA_TYPE
(
pCol
->
type
))
{
tTagValPush
(
pTagArray
,
&
pCol
->
colId
,
pCol
->
type
,
tagVal
.
pData
,
varDataT
Len
(
tagVal
.
pData
),
false
);
tTagValPush
(
pTagArray
,
&
pCol
->
colId
,
pCol
->
type
,
varDataVal
(
tagVal
.
pData
),
varData
Len
(
tagVal
.
pData
),
false
);
}
else
{
tTagValPush
(
pTagArray
,
&
pCol
->
colId
,
pCol
->
type
,
tagVal
.
pData
,
pCol
->
bytes
,
false
);
}
...
...
source/libs/parser/src/parTranslater.c
浏览文件 @
174eb2d8
...
...
@@ -4030,6 +4030,19 @@ static int32_t serializeVgroupCreateTableBatch(SVgroupCreateTableBatch* pTbBatch
pVgData
->
numOfTables
=
(
int32_t
)
taosArrayGetSize
(
pTbBatch
->
req
.
pArray
);
taosArrayPush
(
pBufArray
,
&
pVgData
);
#if 1 // debug print
SDecoder
decoder
=
{
0
};
SVCreateTbBatchReq
req
=
{
0
};
// decode
tDecoderInit
(
&
decoder
,
pBuf
,
tlen
-
sizeof
(
SMsgHead
));
if
(
tDecodeSVCreateTbBatchReq
(
&
decoder
,
&
req
)
<
0
)
{
ASSERT
(
0
);
}
tDecoderClear
(
&
decoder
);
#endif
printf
(
"%s:%d: OK in send
\n
"
,
__func__
,
__LINE__
);
ASSERT
(
0
);
return
TSDB_CODE_SUCCESS
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录