Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
8102beff
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
8102beff
编写于
3月 13, 2023
作者:
wmmhello
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:add log for taosx
上级
06079c90
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
8 deletion
+19
-8
source/client/src/clientRawBlockWrite.c
source/client/src/clientRawBlockWrite.c
+19
-8
未找到文件。
source/client/src/clientRawBlockWrite.c
浏览文件 @
8102beff
...
...
@@ -194,6 +194,7 @@ static char* processCreateStb(SMqMetaRsp* metaRsp) {
SDecoder
coder
;
char
*
string
=
NULL
;
uDebug
(
"processCreateStb called"
);
// decode and process req
void
*
data
=
POINTER_SHIFT
(
metaRsp
->
metaRsp
,
sizeof
(
SMsgHead
));
int32_t
len
=
metaRsp
->
metaRspLen
-
sizeof
(
SMsgHead
);
...
...
@@ -203,7 +204,7 @@ static char* processCreateStb(SMqMetaRsp* metaRsp) {
goto
_err
;
}
string
=
buildCreateTableJson
(
&
req
.
schemaRow
,
&
req
.
schemaTag
,
req
.
name
,
req
.
suid
,
TSDB_SUPER_TABLE
);
uDebug
(
"processCreateStb %s"
,
string
);
_err:
tDecoderClear
(
&
coder
);
return
string
;
...
...
@@ -213,6 +214,7 @@ static char* processAlterStb(SMqMetaRsp* metaRsp) {
SVCreateStbReq
req
=
{
0
};
SDecoder
coder
;
char
*
string
=
NULL
;
uDebug
(
"processAlterStb called"
);
// decode and process req
void
*
data
=
POINTER_SHIFT
(
metaRsp
->
metaRsp
,
sizeof
(
SMsgHead
));
...
...
@@ -223,6 +225,7 @@ static char* processAlterStb(SMqMetaRsp* metaRsp) {
goto
_err
;
}
string
=
buildAlterSTableJson
(
req
.
alterOriData
,
req
.
alterOriDataLen
);
uDebug
(
"processAlterStb %s"
,
string
);
_err:
tDecoderClear
(
&
coder
);
...
...
@@ -346,6 +349,7 @@ static char* processCreateTable(SMqMetaRsp* metaRsp) {
SVCreateTbReq
*
pCreateReq
;
char
*
string
=
NULL
;
// decode
uDebug
(
"processCreateTable called"
);
void
*
data
=
POINTER_SHIFT
(
metaRsp
->
metaRsp
,
sizeof
(
SMsgHead
));
int32_t
len
=
metaRsp
->
metaRspLen
-
sizeof
(
SMsgHead
);
tDecoderInit
(
&
decoder
,
data
,
len
);
...
...
@@ -359,9 +363,9 @@ static char* processCreateTable(SMqMetaRsp* metaRsp) {
if
(
pCreateReq
->
type
==
TSDB_CHILD_TABLE
)
{
string
=
buildCreateCTableJson
(
req
.
pReqs
,
req
.
nReqs
);
}
else
if
(
pCreateReq
->
type
==
TSDB_NORMAL_TABLE
)
{
string
=
buildCreateTableJson
(
&
pCreateReq
->
ntb
.
schemaRow
,
NULL
,
pCreateReq
->
name
,
pCreateReq
->
uid
,
TSDB_NORMAL_TABLE
);
string
=
buildCreateTableJson
(
&
pCreateReq
->
ntb
.
schemaRow
,
NULL
,
pCreateReq
->
name
,
pCreateReq
->
uid
,
TSDB_NORMAL_TABLE
);
}
uDebug
(
"processCreateTable :%s"
,
string
);
}
_exit:
...
...
@@ -377,6 +381,7 @@ _exit:
}
static
char
*
processAutoCreateTable
(
STaosxRsp
*
rsp
)
{
uDebug
(
"processAutoCreateTable called"
);
if
(
rsp
->
createTableNum
<=
0
)
{
uError
(
"WriteRaw:processAutoCreateTable rsp->createTableNum <= 0"
);
goto
_exit
;
...
...
@@ -402,7 +407,7 @@ static char* processAutoCreateTable(STaosxRsp* rsp) {
}
}
string
=
buildCreateCTableJson
(
pCreateReq
,
rsp
->
createTableNum
);
uDebug
(
"processAutoCreateTable :%s"
,
string
);
_exit:
for
(
int
i
=
0
;
i
<
rsp
->
createTableNum
;
i
++
)
{
tDecoderClear
(
&
decoder
[
i
]);
...
...
@@ -422,6 +427,7 @@ static char* processAlterTable(SMqMetaRsp* metaRsp) {
char
*
string
=
NULL
;
cJSON
*
json
=
NULL
;
uDebug
(
"processAlterTable called"
);
// decode
void
*
data
=
POINTER_SHIFT
(
metaRsp
->
metaRsp
,
sizeof
(
SMsgHead
));
int32_t
len
=
metaRsp
->
metaRspLen
-
sizeof
(
SMsgHead
);
...
...
@@ -527,6 +533,7 @@ static char* processAlterTable(SMqMetaRsp* metaRsp) {
break
;
}
string
=
cJSON_PrintUnformatted
(
json
);
uDebug
(
"processAlterTable :%s"
,
string
);
_exit:
cJSON_Delete
(
json
);
...
...
@@ -539,6 +546,7 @@ static char* processDropSTable(SMqMetaRsp* metaRsp) {
SVDropStbReq
req
=
{
0
};
char
*
string
=
NULL
;
cJSON
*
json
=
NULL
;
uDebug
(
"processDropSTable called"
);
// decode
void
*
data
=
POINTER_SHIFT
(
metaRsp
->
metaRsp
,
sizeof
(
SMsgHead
));
...
...
@@ -560,7 +568,7 @@ static char* processDropSTable(SMqMetaRsp* metaRsp) {
cJSON_AddItemToObject
(
json
,
"tableName"
,
tableName
);
string
=
cJSON_PrintUnformatted
(
json
);
uDebug
(
"processDropSTable :%s"
,
string
);
_exit:
cJSON_Delete
(
json
);
tDecoderClear
(
&
decoder
);
...
...
@@ -573,6 +581,7 @@ static char* processDeleteTable(SMqMetaRsp* metaRsp) {
cJSON
*
json
=
NULL
;
char
*
string
=
NULL
;
uDebug
(
"processDeleteTable called"
);
// decode and process req
void
*
data
=
POINTER_SHIFT
(
metaRsp
->
metaRsp
,
sizeof
(
SMsgHead
));
int32_t
len
=
metaRsp
->
metaRspLen
-
sizeof
(
SMsgHead
);
...
...
@@ -599,7 +608,7 @@ static char* processDeleteTable(SMqMetaRsp* metaRsp) {
cJSON_AddItemToObject
(
json
,
"sql"
,
sqlJson
);
string
=
cJSON_PrintUnformatted
(
json
);
uDebug
(
"processDeleteTable :%s"
,
string
);
_exit:
cJSON_Delete
(
json
);
tDecoderClear
(
&
coder
);
...
...
@@ -612,6 +621,7 @@ static char* processDropTable(SMqMetaRsp* metaRsp) {
char
*
string
=
NULL
;
cJSON
*
json
=
NULL
;
uDebug
(
"processDropTable called"
);
// decode
void
*
data
=
POINTER_SHIFT
(
metaRsp
->
metaRsp
,
sizeof
(
SMsgHead
));
int32_t
len
=
metaRsp
->
metaRspLen
-
sizeof
(
SMsgHead
);
...
...
@@ -641,7 +651,7 @@ static char* processDropTable(SMqMetaRsp* metaRsp) {
cJSON_AddItemToObject
(
json
,
"tableNameList"
,
tableNameList
);
string
=
cJSON_PrintUnformatted
(
json
);
uDebug
(
"processDropTable :%s"
,
string
);
_exit:
cJSON_Delete
(
json
);
tDecoderClear
(
&
decoder
);
...
...
@@ -1745,6 +1755,7 @@ end:
}
char
*
tmq_get_json_meta
(
TAOS_RES
*
res
)
{
uDebug
(
"tmq_get_json_meta called"
);
if
(
!
TD_RES_TMQ_META
(
res
)
&&
!
TD_RES_TMQ_METADATA
(
res
))
{
return
NULL
;
}
...
...
@@ -1844,7 +1855,7 @@ void tmq_free_raw(tmq_raw_data raw) {
}
int32_t
tmq_write_raw
(
TAOS
*
taos
,
tmq_raw_data
raw
)
{
uDebug
(
"tmq_write_raw"
);
uDebug
(
"tmq_write_raw
called
"
);
if
(
!
taos
)
{
return
TSDB_CODE_INVALID_PARA
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录