Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
XKZJ_WCL
TDengine
提交
308c4174
T
TDengine
项目概览
XKZJ_WCL
/
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
308c4174
编写于
1月 09, 2020
作者:
L
lihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[dump sql]
上级
9e7f6703
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
5 deletion
+10
-5
src/client/src/tscAsync.c
src/client/src/tscAsync.c
+1
-1
src/client/src/tscSql.c
src/client/src/tscSql.c
+1
-1
src/client/src/tscUtil.c
src/client/src/tscUtil.c
+4
-2
src/inc/tlog.h
src/inc/tlog.h
+4
-1
未找到文件。
src/client/src/tscAsync.c
浏览文件 @
308c4174
...
@@ -95,7 +95,7 @@ void taos_query_a(TAOS *taos, const char *sqlstr, void (*fp)(void *, TAOS_RES *,
...
@@ -95,7 +95,7 @@ void taos_query_a(TAOS *taos, const char *sqlstr, void (*fp)(void *, TAOS_RES *,
pRes
->
numOfRows
=
1
;
pRes
->
numOfRows
=
1
;
strtolower
(
pSql
->
sqlstr
,
sqlstr
);
strtolower
(
pSql
->
sqlstr
,
sqlstr
);
tsc
Trace
(
"%p Async SQL: %s, pObj:%p"
,
pSql
,
pSql
->
sqlstr
,
pObj
);
tsc
Dump
(
"%p pObj:%p, Async SQL: %s"
,
pSql
,
pObj
,
pSql
->
sqlstr
);
int32_t
code
=
tsParseSql
(
pSql
,
pObj
->
acctId
,
pObj
->
db
,
true
);
int32_t
code
=
tsParseSql
(
pSql
,
pObj
->
acctId
,
pObj
->
db
,
true
);
if
(
code
==
TSDB_CODE_ACTION_IN_PROGRESS
)
return
;
if
(
code
==
TSDB_CODE_ACTION_IN_PROGRESS
)
return
;
...
...
src/client/src/tscSql.c
浏览文件 @
308c4174
...
@@ -207,7 +207,7 @@ int taos_query_imp(STscObj *pObj, SSqlObj *pSql) {
...
@@ -207,7 +207,7 @@ int taos_query_imp(STscObj *pObj, SSqlObj *pSql) {
pSql
->
pTableHashList
=
NULL
;
pSql
->
pTableHashList
=
NULL
;
}
}
tsc
Trace
(
"%p SQL: %s pObj:%p"
,
pSql
,
pSql
->
sqlstr
,
pObj
);
tsc
Dump
(
"%p pObj:%p, SQL: %s"
,
pSql
,
pObj
,
pSql
->
sqlstr
);
pRes
->
code
=
(
uint8_t
)
tsParseSql
(
pSql
,
pObj
->
acctId
,
pObj
->
db
,
false
);
pRes
->
code
=
(
uint8_t
)
tsParseSql
(
pSql
,
pObj
->
acctId
,
pObj
->
db
,
false
);
...
...
src/client/src/tscUtil.c
浏览文件 @
308c4174
...
@@ -692,8 +692,10 @@ int32_t tscMergeTableDataBlocks(SSqlObj* pSql, SDataBlockList* pTableDataBlockLi
...
@@ -692,8 +692,10 @@ int32_t tscMergeTableDataBlocks(SSqlObj* pSql, SDataBlockList* pTableDataBlockLi
SShellSubmitBlock
*
pBlocks
=
(
SShellSubmitBlock
*
)
pOneTableBlock
->
pData
;
SShellSubmitBlock
*
pBlocks
=
(
SShellSubmitBlock
*
)
pOneTableBlock
->
pData
;
sortRemoveDuplicates
(
pOneTableBlock
);
sortRemoveDuplicates
(
pOneTableBlock
);
tscTrace
(
"%p meterId:%s, sid:%d, rows:%d, sversion:%d"
,
pSql
,
pOneTableBlock
->
meterId
,
pBlocks
->
sid
,
char
*
e
=
(
char
*
)
pBlocks
->
payLoad
+
pOneTableBlock
->
rowSize
*
(
pBlocks
->
numOfRows
-
1
);
pBlocks
->
numOfRows
,
pBlocks
->
sversion
);
tscTrace
(
"%p meterId:%s, sid:%d rows:%d sversion:%d skey:%"
PRId64
", ekey:%"
PRId64
,
pSql
,
pOneTableBlock
->
meterId
,
pBlocks
->
sid
,
pBlocks
->
numOfRows
,
pBlocks
->
sversion
,
GET_INT64_VAL
(
pBlocks
->
payLoad
),
GET_INT64_VAL
(
e
));
pBlocks
->
sid
=
htonl
(
pBlocks
->
sid
);
pBlocks
->
sid
=
htonl
(
pBlocks
->
sid
);
pBlocks
->
uid
=
htobe64
(
pBlocks
->
uid
);
pBlocks
->
uid
=
htobe64
(
pBlocks
->
uid
);
...
...
src/inc/tlog.h
浏览文件 @
308c4174
...
@@ -113,7 +113,10 @@ extern uint32_t cdebugFlag;
...
@@ -113,7 +113,10 @@ extern uint32_t cdebugFlag;
}
}
#define tscPrint(...) \
#define tscPrint(...) \
{ tprintf("TSC ", 255, __VA_ARGS__); }
{ tprintf("TSC ", 255, __VA_ARGS__); }
#define tscDump(...) \
if (cdebugFlag & DEBUG_TRACE) { \
taosPrintLongString("TSC ", cdebugFlag, __VA_ARGS__); \
}
#define jniError(...) \
#define jniError(...) \
if (jnidebugFlag & DEBUG_ERROR) { \
if (jnidebugFlag & DEBUG_ERROR) { \
tprintf("ERROR JNI ", jnidebugFlag, __VA_ARGS__); \
tprintf("ERROR JNI ", jnidebugFlag, __VA_ARGS__); \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录