Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
66477a28
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看板
提交
66477a28
编写于
5月 23, 2023
作者:
H
Haojun Liao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: do some internal refactor.
上级
85afbf0d
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
137 addition
and
141 deletion
+137
-141
include/libs/executor/executor.h
include/libs/executor/executor.h
+2
-2
include/libs/executor/storageapi.h
include/libs/executor/storageapi.h
+2
-2
source/dnode/vnode/src/vnd/vnodeSvr.c
source/dnode/vnode/src/vnd/vnodeSvr.c
+103
-103
source/libs/executor/src/executil.c
source/libs/executor/src/executil.c
+1
-1
source/libs/executor/src/executor.c
source/libs/executor/src/executor.c
+3
-3
source/libs/executor/src/querytask.c
source/libs/executor/src/querytask.c
+1
-1
source/libs/executor/src/scanoperator.c
source/libs/executor/src/scanoperator.c
+11
-11
source/libs/executor/src/sysscanoperator.c
source/libs/executor/src/sysscanoperator.c
+13
-13
source/libs/qworker/src/qwMsg.c
source/libs/qworker/src/qwMsg.c
+1
-5
未找到文件。
include/libs/executor/executor.h
浏览文件 @
66477a28
...
...
@@ -42,7 +42,7 @@ typedef struct {
typedef
struct
{
void
*
tqReader
;
void
*
meta
;
//
void* meta;
void
*
config
;
void
*
vnode
;
void
*
mnd
;
...
...
@@ -54,7 +54,7 @@ typedef struct {
int32_t
numOfVgroups
;
void
*
sContext
;
// SSnapContext*
void
*
pStateBackend
;
void
*
pStateBackend
;
struct
SStorageAPI
api
;
}
SReadHandle
;
...
...
include/libs/executor/storageapi.h
浏览文件 @
66477a28
...
...
@@ -243,6 +243,7 @@ typedef struct TsdReader {
void
(
*
tsdReaderNotifyClosing
)();
}
TsdReader
;
/**
* int32_t tsdbReuseCacherowsReader(void* pReader, void* pTableIdList, int32_t numOfTables);
int32_t tsdbCacherowsReaderOpen(void *pVnode, int32_t type, void *pTableIdList, int32_t numOfTables, int32_t numOfCols,
...
...
@@ -262,7 +263,6 @@ typedef struct SStoreCacheReader {
/*------------------------------------------------------------------------------------------------------------------*/
/*
*
void tqReaderSetColIdList(STqReader *pReader, SArray *pColIdList);
int32_t tqReaderSetTbUidList(STqReader *pReader, const SArray *tbUidList);
int32_t tqReaderAddTbUidList(STqReader *pReader, const SArray *pTableUidList);
...
...
@@ -552,7 +552,7 @@ typedef struct SStateStore {
typedef
struct
SStorageAPI
{
SStoreMeta
metaFn
;
// todo: refactor
TsdReader
tsdReader
;
TsdReader
tsdReader
;
SStoreMetaReader
metaReaderFn
;
SStoreCacheReader
cacheFn
;
SStoreSnapshotFn
snapshotFn
;
...
...
source/dnode/vnode/src/vnd/vnodeSvr.c
浏览文件 @
66477a28
此差异已折叠。
点击以展开。
source/libs/executor/src/executil.c
浏览文件 @
66477a28
...
...
@@ -2055,7 +2055,7 @@ int32_t buildGroupIdMapForAllTables(STableListInfo* pTableListInfo, SReadHandle*
pTableListInfo
->
numOfOuputGroups
=
1
;
}
}
else
{
code
=
getColInfoResultForGroupby
(
pHandle
->
meta
,
group
,
pTableListInfo
,
digest
,
pAPI
);
code
=
getColInfoResultForGroupby
(
pHandle
->
vnode
,
group
,
pTableListInfo
,
digest
,
pAPI
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
return
code
;
}
...
...
source/libs/executor/src/executor.c
浏览文件 @
66477a28
...
...
@@ -340,7 +340,7 @@ static SArray* filterUnqualifiedTables(const SStreamScanInfo* pScanInfo, const S
// let's discard the tables those are not created according to the queried super table.
SMetaReader
mr
=
{
0
};
pAPI
->
metaReaderFn
.
initReader
(
&
mr
,
pScanInfo
->
readHandle
.
meta
,
0
);
pAPI
->
metaReaderFn
.
initReader
(
&
mr
,
pScanInfo
->
readHandle
.
vnode
,
0
);
for
(
int32_t
i
=
0
;
i
<
numOfUids
;
++
i
)
{
uint64_t
*
id
=
(
uint64_t
*
)
taosArrayGet
(
tableIdList
,
i
);
...
...
@@ -372,7 +372,7 @@ static SArray* filterUnqualifiedTables(const SStreamScanInfo* pScanInfo, const S
if
(
pScanInfo
->
pTagCond
!=
NULL
)
{
bool
qualified
=
false
;
STableKeyInfo
info
=
{.
groupId
=
0
,
.
uid
=
mr
.
me
.
uid
};
code
=
isQualifiedTable
(
&
info
,
pScanInfo
->
pTagCond
,
pScanInfo
->
readHandle
.
meta
,
&
qualified
,
pAPI
);
code
=
isQualifiedTable
(
&
info
,
pScanInfo
->
pTagCond
,
pScanInfo
->
readHandle
.
vnode
,
&
qualified
,
pAPI
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
qError
(
"failed to filter new table, uid:0x%"
PRIx64
", %s"
,
info
.
uid
,
idstr
);
continue
;
...
...
@@ -437,7 +437,7 @@ int32_t qUpdateTableListForStreamScanner(qTaskInfo_t tinfo, const SArray* tableI
if
(
assignUid
)
{
keyInfo
.
groupId
=
keyInfo
.
uid
;
}
else
{
code
=
getGroupIdFromTagsVal
(
pScanInfo
->
readHandle
.
meta
,
keyInfo
.
uid
,
pScanInfo
->
pGroupTags
,
keyBuf
,
code
=
getGroupIdFromTagsVal
(
pScanInfo
->
readHandle
.
vnode
,
keyInfo
.
uid
,
pScanInfo
->
pGroupTags
,
keyBuf
,
&
keyInfo
.
groupId
,
&
pTaskInfo
->
storageAPI
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
taosMemoryFree
(
keyBuf
);
...
...
source/libs/executor/src/querytask.c
浏览文件 @
66477a28
...
...
@@ -122,7 +122,7 @@ int32_t initQueriedTableSchemaInfo(SReadHandle* pHandle, SScanPhysiNode* pScanNo
SStorageAPI
*
pAPI
=
&
pTaskInfo
->
storageAPI
;
pAPI
->
metaReaderFn
.
initReader
(
&
mr
,
pHandle
->
meta
,
0
);
pAPI
->
metaReaderFn
.
initReader
(
&
mr
,
pHandle
->
vnode
,
0
);
int32_t
code
=
pAPI
->
metaReaderFn
.
readerGetEntryGetUidCache
(
&
mr
,
pScanNode
->
uid
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
qError
(
"failed to get the table meta, uid:0x%"
PRIx64
", suid:0x%"
PRIx64
", %s"
,
pScanNode
->
uid
,
pScanNode
->
suid
,
...
...
source/libs/executor/src/scanoperator.c
浏览文件 @
66477a28
...
...
@@ -531,7 +531,7 @@ int32_t addTagPseudoColumnData(SReadHandle* pHandle, const SExprInfo* pExpr, int
// 1. check if it is existed in meta cache
if
(
pCache
==
NULL
)
{
pHandle
->
api
.
metaReaderFn
.
initReader
(
&
mr
,
pHandle
->
meta
,
0
);
pHandle
->
api
.
metaReaderFn
.
initReader
(
&
mr
,
pHandle
->
vnode
,
0
);
code
=
pHandle
->
api
.
metaReaderFn
.
readerGetEntryGetUidCache
(
&
mr
,
pBlock
->
info
.
id
.
uid
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
// when encounter the TSDB_CODE_PAR_TABLE_NOT_EXIST error, we proceed.
...
...
@@ -560,7 +560,7 @@ int32_t addTagPseudoColumnData(SReadHandle* pHandle, const SExprInfo* pExpr, int
h
=
taosLRUCacheLookup
(
pCache
->
pTableMetaEntryCache
,
&
pBlock
->
info
.
id
.
uid
,
sizeof
(
pBlock
->
info
.
id
.
uid
));
if
(
h
==
NULL
)
{
pHandle
->
api
.
metaReaderFn
.
initReader
(
&
mr
,
pHandle
->
meta
,
0
);
pHandle
->
api
.
metaReaderFn
.
initReader
(
&
mr
,
pHandle
->
vnode
,
0
);
code
=
pHandle
->
api
.
metaReaderFn
.
readerGetEntryGetUidCache
(
&
mr
,
pBlock
->
info
.
id
.
uid
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
if
(
terrno
==
TSDB_CODE_PAR_TABLE_NOT_EXIST
)
{
...
...
@@ -2556,7 +2556,7 @@ static SSDataBlock* doTagScan(SOperatorInfo* pOperator) {
char
str
[
512
]
=
{
0
};
int32_t
count
=
0
;
SMetaReader
mr
=
{
0
};
pAPI
->
metaReaderFn
.
initReader
(
&
mr
,
pInfo
->
readHandle
.
meta
,
0
);
pAPI
->
metaReaderFn
.
initReader
(
&
mr
,
pInfo
->
readHandle
.
vnode
,
0
);
while
(
pInfo
->
curPos
<
size
&&
count
<
pOperator
->
resultInfo
.
capacity
)
{
doTagScanOneTable
(
pOperator
,
pRes
,
count
,
&
mr
,
&
pTaskInfo
->
storageAPI
);
...
...
@@ -3396,7 +3396,7 @@ static void buildVnodeGroupedTableCount(SOperatorInfo* pOperator, STableCountSca
pRes
->
info
.
id
.
groupId
=
groupId
;
int64_t
dbTableCount
=
0
;
pAPI
->
metaFn
.
storeGetBasicInfo
(
pInfo
->
readHandle
.
meta
,
&
dbTableCount
);
pAPI
->
metaFn
.
storeGetBasicInfo
(
pInfo
->
readHandle
.
vnode
,
&
dbTableCount
);
fillTableCountScanDataBlock
(
pSupp
,
dbName
,
""
,
dbTableCount
,
pRes
);
setOperatorCompleted
(
pOperator
);
}
...
...
@@ -3410,18 +3410,18 @@ static void buildVnodeFilteredTbCount(SOperatorInfo* pOperator, STableCountScanO
if
(
strlen
(
pSupp
->
dbNameFilter
)
!=
0
)
{
if
(
strlen
(
pSupp
->
stbNameFilter
)
!=
0
)
{
tb_uid_t
uid
=
0
;
pAPI
->
metaFn
.
getTableUidByName
(
pInfo
->
readHandle
.
meta
,
pSupp
->
stbNameFilter
,
&
uid
);
pAPI
->
metaFn
.
getTableUidByName
(
pInfo
->
readHandle
.
vnode
,
pSupp
->
stbNameFilter
,
&
uid
);
SMetaStbStats
stats
=
{
0
};
ASSERT
(
0
);
// metaGetStbStats(pInfo->readHandle.
meta
, uid, &stats);
// metaGetStbStats(pInfo->readHandle.
vnode
, uid, &stats);
int64_t
ctbNum
=
stats
.
ctbNum
;
fillTableCountScanDataBlock
(
pSupp
,
dbName
,
pSupp
->
stbNameFilter
,
ctbNum
,
pRes
);
}
else
{
int64_t
tbNumVnode
=
0
;
//metaGetTbNum(pInfo->readHandle.
meta
);
int64_t
tbNumVnode
=
0
;
//metaGetTbNum(pInfo->readHandle.
vnode
);
fillTableCountScanDataBlock
(
pSupp
,
dbName
,
""
,
tbNumVnode
,
pRes
);
}
}
else
{
int64_t
tbNumVnode
=
0
;
//metaGetTbNum(pInfo->readHandle.
meta
);
int64_t
tbNumVnode
=
0
;
//metaGetTbNum(pInfo->readHandle.
vnode
);
pAPI
->
metaFn
.
storeGetBasicInfo
(
pInfo
->
readHandle
.
vnode
);
fillTableCountScanDataBlock
(
pSupp
,
dbName
,
""
,
tbNumVnode
,
pRes
);
}
...
...
@@ -3437,7 +3437,7 @@ static void buildVnodeGroupedNtbTableCount(STableCountScanOperatorInfo* pInfo, S
uint64_t
groupId
=
calcGroupId
(
fullStbName
,
strlen
(
fullStbName
));
pRes
->
info
.
id
.
groupId
=
groupId
;
int64_t
ntbNum
=
0
;
//metaGetNtbNum(pInfo->readHandle.
meta
);
int64_t
ntbNum
=
0
;
//metaGetNtbNum(pInfo->readHandle.
vnode
);
ASSERT
(
0
);
if
(
ntbNum
!=
0
)
{
fillTableCountScanDataBlock
(
pSupp
,
dbName
,
""
,
ntbNum
,
pRes
);
...
...
@@ -3448,7 +3448,7 @@ static void buildVnodeGroupedStbTableCount(STableCountScanOperatorInfo* pInfo, S
SSDataBlock
*
pRes
,
char
*
dbName
,
tb_uid_t
stbUid
)
{
char
stbName
[
TSDB_TABLE_NAME_LEN
]
=
{
0
};
ASSERT
(
0
);
// metaGetTableSzNameByUid(pInfo->readHandle.
meta
, stbUid, stbName);
// metaGetTableSzNameByUid(pInfo->readHandle.
vnode
, stbUid, stbName);
char
fullStbName
[
TSDB_TABLE_FNAME_LEN
]
=
{
0
};
if
(
pSupp
->
groupByDbName
)
{
...
...
@@ -3461,7 +3461,7 @@ static void buildVnodeGroupedStbTableCount(STableCountScanOperatorInfo* pInfo, S
pRes
->
info
.
id
.
groupId
=
groupId
;
SMetaStbStats
stats
=
{
0
};
// metaGetStbStats(pInfo->readHandle.
meta
, stbUid, &stats);
// metaGetStbStats(pInfo->readHandle.
vnode
, stbUid, &stats);
int64_t
ctbNum
=
stats
.
ctbNum
;
fillTableCountScanDataBlock
(
pSupp
,
dbName
,
stbName
,
ctbNum
,
pRes
);
...
...
source/libs/executor/src/sysscanoperator.c
浏览文件 @
66477a28
...
...
@@ -466,7 +466,7 @@ static SSDataBlock* sysTableScanUserCols(SOperatorInfo* pOperator) {
STR_TO_VARSTR
(
tableName
,
pInfo
->
req
.
filterTb
);
SMetaReader
smrTable
=
{
0
};
pAPI
->
metaReaderFn
.
initReader
(
&
smrTable
,
pInfo
->
readHandle
.
meta
,
0
);
pAPI
->
metaReaderFn
.
initReader
(
&
smrTable
,
pInfo
->
readHandle
.
vnode
,
0
);
int32_t
code
=
pAPI
->
metaReaderFn
.
getTableEntryByName
(
&
smrTable
,
pInfo
->
req
.
filterTb
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
// terrno has been set by pAPI->metaReaderFn.getTableEntryByName, therefore, return directly
...
...
@@ -486,7 +486,7 @@ static SSDataBlock* sysTableScanUserCols(SOperatorInfo* pOperator) {
if
(
smrTable
.
me
.
type
==
TSDB_CHILD_TABLE
)
{
int64_t
suid
=
smrTable
.
me
.
ctbEntry
.
suid
;
pAPI
->
metaReaderFn
.
clearReader
(
&
smrTable
);
pAPI
->
metaReaderFn
.
initReader
(
&
smrTable
,
pInfo
->
readHandle
.
meta
,
0
);
pAPI
->
metaReaderFn
.
initReader
(
&
smrTable
,
pInfo
->
readHandle
.
vnode
,
0
);
code
=
pAPI
->
metaReaderFn
.
getTableEntryByUid
(
&
smrTable
,
suid
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
// terrno has been set by pAPI->metaReaderFn.getTableEntryByName, therefore, return directly
...
...
@@ -522,7 +522,7 @@ static SSDataBlock* sysTableScanUserCols(SOperatorInfo* pOperator) {
int32_t
ret
=
0
;
if
(
pInfo
->
pCur
==
NULL
)
{
pInfo
->
pCur
=
pAPI
->
metaFn
.
openMetaCursor
(
pInfo
->
readHandle
.
meta
);
pInfo
->
pCur
=
pAPI
->
metaFn
.
openMetaCursor
(
pInfo
->
readHandle
.
vnode
);
}
if
(
pInfo
->
pSchema
==
NULL
)
{
...
...
@@ -569,7 +569,7 @@ static SSDataBlock* sysTableScanUserCols(SOperatorInfo* pOperator) {
schemaRow
=
*
(
SSchemaWrapper
**
)
schema
;
}
else
{
SMetaReader
smrSuperTable
=
{
0
};
pAPI
->
metaReaderFn
.
initReader
(
&
smrSuperTable
,
pInfo
->
readHandle
.
meta
,
0
);
pAPI
->
metaReaderFn
.
initReader
(
&
smrSuperTable
,
pInfo
->
readHandle
.
vnode
,
0
);
int
code
=
pAPI
->
metaReaderFn
.
getTableEntryByUid
(
&
smrSuperTable
,
suid
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
// terrno has been set by pAPI->metaReaderFn.getTableEntryByName, therefore, return directly
...
...
@@ -658,7 +658,7 @@ static SSDataBlock* sysTableScanUserTags(SOperatorInfo* pOperator) {
STR_TO_VARSTR
(
tableName
,
condTableName
);
SMetaReader
smrChildTable
=
{
0
};
pAPI
->
metaReaderFn
.
initReader
(
&
smrChildTable
,
pInfo
->
readHandle
.
meta
,
0
);
pAPI
->
metaReaderFn
.
initReader
(
&
smrChildTable
,
pInfo
->
readHandle
.
vnode
,
0
);
int32_t
code
=
pAPI
->
metaReaderFn
.
getTableEntryByName
(
&
smrChildTable
,
condTableName
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
// terrno has been set by pAPI->metaReaderFn.getTableEntryByName, therefore, return directly
...
...
@@ -676,7 +676,7 @@ static SSDataBlock* sysTableScanUserTags(SOperatorInfo* pOperator) {
}
SMetaReader
smrSuperTable
=
{
0
};
pAPI
->
metaReaderFn
.
initReader
(
&
smrSuperTable
,
pInfo
->
readHandle
.
meta
,
META_READER_NOLOCK
);
pAPI
->
metaReaderFn
.
initReader
(
&
smrSuperTable
,
pInfo
->
readHandle
.
vnode
,
META_READER_NOLOCK
);
code
=
pAPI
->
metaReaderFn
.
getTableEntryByUid
(
&
smrSuperTable
,
smrChildTable
.
me
.
ctbEntry
.
suid
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
// terrno has been set by pAPI->metaReaderFn.getTableEntryByUid
...
...
@@ -702,7 +702,7 @@ static SSDataBlock* sysTableScanUserTags(SOperatorInfo* pOperator) {
int32_t
ret
=
0
;
if
(
pInfo
->
pCur
==
NULL
)
{
pInfo
->
pCur
=
pAPI
->
metaFn
.
openMetaCursor
(
pInfo
->
readHandle
.
meta
);
pInfo
->
pCur
=
pAPI
->
metaFn
.
openMetaCursor
(
pInfo
->
readHandle
.
vnode
);
}
bool
blockFull
=
false
;
...
...
@@ -715,7 +715,7 @@ static SSDataBlock* sysTableScanUserTags(SOperatorInfo* pOperator) {
STR_TO_VARSTR
(
tableName
,
pInfo
->
pCur
->
mr
.
me
.
name
);
SMetaReader
smrSuperTable
=
{
0
};
pAPI
->
metaReaderFn
.
initReader
(
&
smrSuperTable
,
pInfo
->
readHandle
.
meta
,
0
);
pAPI
->
metaReaderFn
.
initReader
(
&
smrSuperTable
,
pInfo
->
readHandle
.
vnode
,
0
);
uint64_t
suid
=
pInfo
->
pCur
->
mr
.
me
.
ctbEntry
.
suid
;
int32_t
code
=
pAPI
->
metaReaderFn
.
getTableEntryByUid
(
&
smrSuperTable
,
suid
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
...
...
@@ -1131,7 +1131,7 @@ static SSDataBlock* sysTableBuildUserTablesByUids(SOperatorInfo* pOperator) {
tb_uid_t
*
uid
=
taosArrayGet
(
pIdx
->
uids
,
i
);
SMetaReader
mr
=
{
0
};
pAPI
->
metaReaderFn
.
initReader
(
&
mr
,
pInfo
->
readHandle
.
meta
,
0
);
pAPI
->
metaReaderFn
.
initReader
(
&
mr
,
pInfo
->
readHandle
.
vnode
,
0
);
ret
=
pAPI
->
metaReaderFn
.
getTableEntryByUid
(
&
mr
,
*
uid
);
if
(
ret
<
0
)
{
pAPI
->
metaReaderFn
.
clearReader
(
&
mr
);
...
...
@@ -1159,7 +1159,7 @@ static SSDataBlock* sysTableBuildUserTablesByUids(SOperatorInfo* pOperator) {
colDataSetVal
(
pColInfoData
,
numOfRows
,
(
char
*
)
&
ts
,
false
);
SMetaReader
mr1
=
{
0
};
pAPI
->
metaReaderFn
.
initReader
(
&
mr1
,
pInfo
->
readHandle
.
meta
,
META_READER_NOLOCK
);
pAPI
->
metaReaderFn
.
initReader
(
&
mr1
,
pInfo
->
readHandle
.
vnode
,
META_READER_NOLOCK
);
int64_t
suid
=
mr
.
me
.
ctbEntry
.
suid
;
int32_t
code
=
pAPI
->
metaReaderFn
.
getTableEntryByUid
(
&
mr1
,
suid
);
...
...
@@ -1292,7 +1292,7 @@ static SSDataBlock* sysTableBuildUserTables(SOperatorInfo* pOperator) {
SSysTableScanInfo
*
pInfo
=
pOperator
->
info
;
if
(
pInfo
->
pCur
==
NULL
)
{
pInfo
->
pCur
=
pAPI
->
metaFn
.
openMetaCursor
(
pInfo
->
readHandle
.
meta
);
pInfo
->
pCur
=
pAPI
->
metaFn
.
openMetaCursor
(
pInfo
->
readHandle
.
vnode
);
}
blockDataCleanup
(
pInfo
->
pRes
);
...
...
@@ -1338,7 +1338,7 @@ static SSDataBlock* sysTableBuildUserTables(SOperatorInfo* pOperator) {
colDataSetVal
(
pColInfoData
,
numOfRows
,
(
char
*
)
&
ts
,
false
);
SMetaReader
mr
=
{
0
};
pAPI
->
metaReaderFn
.
initReader
(
&
mr
,
pInfo
->
readHandle
.
meta
,
META_READER_NOLOCK
);
pAPI
->
metaReaderFn
.
initReader
(
&
mr
,
pInfo
->
readHandle
.
vnode
,
META_READER_NOLOCK
);
uint64_t
suid
=
pInfo
->
pCur
->
mr
.
me
.
ctbEntry
.
suid
;
int32_t
code
=
pAPI
->
metaReaderFn
.
getTableEntryByUid
(
&
mr
,
suid
);
...
...
@@ -1486,7 +1486,7 @@ static SSDataBlock* sysTableScanUserTables(SOperatorInfo* pOperator) {
}
else
{
if
(
pInfo
->
showRewrite
==
false
)
{
if
(
pCondition
!=
NULL
&&
pInfo
->
pIdx
==
NULL
)
{
SSTabFltArg
arg
=
{.
pMeta
=
pInfo
->
readHandle
.
meta
,
.
pVnode
=
pInfo
->
readHandle
.
vnode
};
SSTabFltArg
arg
=
{.
pMeta
=
pInfo
->
readHandle
.
vnode
,
.
pVnode
=
pInfo
->
readHandle
.
vnode
};
SSysTableIndex
*
idx
=
taosMemoryMalloc
(
sizeof
(
SSysTableIndex
));
idx
->
init
=
0
;
...
...
source/libs/qworker/src/qwMsg.c
浏览文件 @
66477a28
...
...
@@ -440,11 +440,7 @@ int32_t qWorkerProcessQueryMsg(void *node, void *qWorkerMgmt, SRpcMsg *pMsg, int
int64_t
rId
=
msg
.
refId
;
int32_t
eId
=
msg
.
execId
;
SQWMsg
qwMsg
=
{.
node
=
node
,
.
msg
=
msg
.
msg
,
.
msgLen
=
msg
.
msgLen
,
.
connInfo
=
pMsg
->
info
,
.
msgType
=
pMsg
->
msgType
};
SQWMsg
qwMsg
=
{.
node
=
node
,
.
msg
=
msg
.
msg
,
.
msgLen
=
msg
.
msgLen
,
.
connInfo
=
pMsg
->
info
,
.
msgType
=
pMsg
->
msgType
};
qwMsg
.
msgInfo
.
explain
=
msg
.
explain
;
qwMsg
.
msgInfo
.
taskType
=
msg
.
taskType
;
qwMsg
.
msgInfo
.
needFetch
=
msg
.
needFetch
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录