Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
cf16ebfe
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
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看板
提交
cf16ebfe
编写于
6月 05, 2023
作者:
K
kailixu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: code optimization
上级
dfebe434
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
6 addition
and
4 deletion
+6
-4
include/common/tgrant.h
include/common/tgrant.h
+4
-0
source/dnode/vnode/src/sma/smaTimeRange.c
source/dnode/vnode/src/sma/smaTimeRange.c
+1
-1
source/dnode/vnode/src/vnd/vnodeSvr.c
source/dnode/vnode/src/vnd/vnodeSvr.c
+0
-2
source/libs/qworker/src/qwMsg.c
source/libs/qworker/src/qwMsg.c
+1
-1
未找到文件。
include/common/tgrant.h
浏览文件 @
cf16ebfe
...
...
@@ -48,6 +48,10 @@ typedef enum {
TSDB_GRANT_TABLE
,
}
EGrantType
;
static
int8_t
tsGrant
=
1
;
static
FORCE_INLINE
int8_t
taosGranted
()
{
return
atomic_load_8
(
&
tsGrant
);
}
int32_t
grantCheck
(
EGrantType
grant
);
#ifndef GRANTS_CFG
...
...
source/dnode/vnode/src/sma/smaTimeRange.c
浏览文件 @
cf16ebfe
...
...
@@ -355,7 +355,7 @@ _end:
*/
static
int32_t
tdProcessTSmaInsertImpl
(
SSma
*
pSma
,
int64_t
indexUid
,
const
char
*
msg
)
{
const
SArray
*
pDataBlocks
=
(
const
SArray
*
)
msg
;
// TODO: destroy SSDataBlocks(msg)
if
(
!
pDataBlocks
)
{
terrno
=
TSDB_CODE_TSMA_INVALID_PTR
;
smaWarn
(
"vgId:%d, insert tsma data failed since pDataBlocks is NULL"
,
SMA_VID
(
pSma
));
...
...
source/dnode/vnode/src/vnd/vnodeSvr.c
浏览文件 @
cf16ebfe
...
...
@@ -588,9 +588,7 @@ int32_t vnodeProcessFetchMsg(SVnode *pVnode, SRpcMsg *pMsg, SQueueInfo *pInfo) {
}
}
// TODO: remove the function
void
smaHandleRes
(
void
*
pVnode
,
int64_t
smaId
,
const
SArray
*
data
)
{
// TODO
// blockDebugShowDataBlocks(data, __func__);
tdProcessTSmaInsert
(((
SVnode
*
)
pVnode
)
->
pSma
,
smaId
,
(
const
char
*
)
data
);
}
...
...
source/libs/qworker/src/qwMsg.c
浏览文件 @
cf16ebfe
...
...
@@ -366,7 +366,7 @@ int32_t qWorkerPreprocessQueryMsg(void *qWorkerMgmt, SRpcMsg *pMsg, bool chkGran
QW_ERR_RET
(
TSDB_CODE_QRY_INVALID_INPUT
);
}
if
(
chkGrant
&&
(
!
TEST_SHOW_REWRITE_MASK
(
msg
.
msgMask
))
&&
(
grantCheck
(
TSDB_GRANT_TIME
)
!=
TSDB_CODE_SUCCESS
))
{
if
(
chkGrant
&&
(
!
TEST_SHOW_REWRITE_MASK
(
msg
.
msgMask
))
&&
!
taosGranted
(
))
{
QW_ELOG
(
"query failed cause of grant expired, msgMask:%d"
,
msg
.
msgMask
);
tFreeSSubQueryMsg
(
&
msg
);
QW_ERR_RET
(
TSDB_CODE_GRANT_EXPIRED
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录