Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
28d73164
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看板
“40c45e2cccfed29817d907a575f6a16339cba170”上不存在“test_tipc/git@gitcode.net:s920243400/PaddleOCR.git”
提交
28d73164
编写于
7月 18, 2023
作者:
K
kailixu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: add enable is tsc obj
上级
3c7924ed
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
1 deletion
+17
-1
include/common/tmsg.h
include/common/tmsg.h
+1
-0
source/client/inc/clientInt.h
source/client/inc/clientInt.h
+1
-0
source/client/src/clientHb.c
source/client/src/clientHb.c
+6
-0
source/common/src/tmsg.c
source/common/src/tmsg.c
+8
-1
source/dnode/mnode/impl/src/mndProfile.c
source/dnode/mnode/impl/src/mndProfile.c
+1
-0
未找到文件。
include/common/tmsg.h
浏览文件 @
28d73164
...
...
@@ -632,6 +632,7 @@ typedef struct {
int8_t
superUser
;
int8_t
sysInfo
;
int8_t
connType
;
int8_t
enable
;
SEpSet
epSet
;
int32_t
svrTimestamp
;
int32_t
passVer
;
...
...
source/client/inc/clientInt.h
浏览文件 @
28d73164
...
...
@@ -141,6 +141,7 @@ typedef struct STscObj {
char
sVer
[
TSDB_VERSION_LEN
];
char
sDetailVer
[
128
];
int8_t
sysInfo
;
int8_t
enable
;
int8_t
connType
;
int32_t
acctId
;
uint32_t
connId
;
...
...
source/client/src/clientHb.c
浏览文件 @
28d73164
...
...
@@ -104,6 +104,12 @@ static int32_t hbUpdateUserAuthInfo(SAppHbMgr *pAppHbMgr, SUserAuthBatchRsp *bat
pTscObj
->
sysInfo
=
pRsp
->
sysInfo
;
}
if
(
pTscObj
->
enable
!=
pRsp
->
enable
)
{
tscDebug
(
"update enable of user %s from %"
PRIi8
" to %"
PRIi8
", tscRid:%"
PRIi64
,
pRsp
->
user
,
pTscObj
->
enable
,
pRsp
->
enable
,
pTscObj
->
id
);
pTscObj
->
enable
=
pRsp
->
enable
;
}
if
(
pTscObj
->
passInfo
.
fp
)
{
SPassInfo
*
passInfo
=
&
pTscObj
->
passInfo
;
int32_t
oldVer
=
atomic_load_32
(
&
passInfo
->
ver
);
...
...
source/common/src/tmsg.c
浏览文件 @
28d73164
...
...
@@ -4117,7 +4117,8 @@ int32_t tSerializeSConnectRsp(void *buf, int32_t bufLen, SConnectRsp *pRsp) {
if
(
tEncodeCStr
(
&
encoder
,
pRsp
->
sVer
)
<
0
)
return
-
1
;
if
(
tEncodeCStr
(
&
encoder
,
pRsp
->
sDetailVer
)
<
0
)
return
-
1
;
if
(
tEncodeI32
(
&
encoder
,
pRsp
->
passVer
)
<
0
)
return
-
1
;
if
(
tEncodeI32
(
&
encoder
,
pRsp
->
authVer
)
<
0
)
return
-
1
;
if
(
tEncodeI32
(
&
encoder
,
pRsp
->
authVer
)
<
0
)
return
-
1
;
// since 3.0.7.0
if
(
tEncodeI8
(
&
encoder
,
pRsp
->
enable
)
<
0
)
return
-
1
;
// since 3.1.0.0
tEndEncode
(
&
encoder
);
int32_t
tlen
=
encoder
.
pos
;
...
...
@@ -4153,6 +4154,12 @@ int32_t tDeserializeSConnectRsp(void *buf, int32_t bufLen, SConnectRsp *pRsp) {
}
else
{
pRsp
->
authVer
=
0
;
}
// since 3.1.0.0
if
(
!
tDecodeIsEnd
(
&
decoder
))
{
if
(
tDecodeI8
(
&
decoder
,
&
pRsp
->
enable
)
<
0
)
return
-
1
;
}
else
{
pRsp
->
enable
=
0
;
}
tEndDecode
(
&
decoder
);
...
...
source/dnode/mnode/impl/src/mndProfile.c
浏览文件 @
28d73164
...
...
@@ -282,6 +282,7 @@ _CONNECT:
connectRsp
.
acctId
=
pUser
->
acctId
;
connectRsp
.
superUser
=
pUser
->
superUser
;
connectRsp
.
sysInfo
=
pUser
->
sysInfo
;
connectRsp
.
enable
=
pUser
->
enable
;
connectRsp
.
clusterId
=
pMnode
->
clusterId
;
connectRsp
.
connId
=
pConn
->
id
;
connectRsp
.
connType
=
connReq
.
connType
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录