Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
099f6f9e
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看板
未验证
提交
099f6f9e
编写于
2月 10, 2022
作者:
S
Shengliang Guan
提交者:
GitHub
2月 10, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #10181 from taosdata/feature/mnode
alter stb
上级
12968ebf
a87d56c5
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
382 addition
and
282 deletion
+382
-282
include/common/tmsg.h
include/common/tmsg.h
+5
-2
source/common/src/tmsg.c
source/common/src/tmsg.c
+42
-0
source/dnode/mnode/impl/src/mndStb.c
source/dnode/mnode/impl/src/mndStb.c
+93
-79
source/dnode/mnode/impl/test/stb/stb.cpp
source/dnode/mnode/impl/test/stb/stb.cpp
+242
-201
未找到文件。
include/common/tmsg.h
浏览文件 @
099f6f9e
...
...
@@ -278,10 +278,13 @@ void* tDeserializeSMDropStbReq(void* buf, SMDropStbReq* pReq);
typedef
struct
{
char
name
[
TSDB_TABLE_FNAME_LEN
];
int8_t
alterType
;
int32_t
numOf
Schema
s
;
S
Schema
pSchemas
[]
;
int32_t
numOf
Field
s
;
S
Array
*
pFields
;
}
SMAltertbReq
;
int32_t
tSerializeSMAlterStbReq
(
void
**
buf
,
SMAltertbReq
*
pReq
);
void
*
tDeserializeSMAlterStbReq
(
void
*
buf
,
SMAltertbReq
*
pReq
);
typedef
struct
{
int32_t
pid
;
char
app
[
TSDB_APP_NAME_LEN
];
...
...
source/common/src/tmsg.c
浏览文件 @
099f6f9e
...
...
@@ -415,3 +415,45 @@ void *tDeserializeSMDropStbReq(void *buf, SMDropStbReq *pReq) {
return
buf
;
}
int32_t
tSerializeSMAlterStbReq
(
void
**
buf
,
SMAltertbReq
*
pReq
)
{
int32_t
tlen
=
0
;
tlen
+=
taosEncodeString
(
buf
,
pReq
->
name
);
tlen
+=
taosEncodeFixedI8
(
buf
,
pReq
->
alterType
);
tlen
+=
taosEncodeFixedI32
(
buf
,
pReq
->
numOfFields
);
for
(
int32_t
i
=
0
;
i
<
pReq
->
numOfFields
;
++
i
)
{
SField
*
pField
=
taosArrayGet
(
pReq
->
pFields
,
i
);
tlen
+=
taosEncodeFixedU8
(
buf
,
pField
->
type
);
tlen
+=
taosEncodeFixedI32
(
buf
,
pField
->
bytes
);
tlen
+=
taosEncodeString
(
buf
,
pField
->
name
);
}
return
tlen
;
}
void
*
tDeserializeSMAlterStbReq
(
void
*
buf
,
SMAltertbReq
*
pReq
)
{
buf
=
taosDecodeStringTo
(
buf
,
pReq
->
name
);
buf
=
taosDecodeFixedI8
(
buf
,
&
pReq
->
alterType
);
buf
=
taosDecodeFixedI32
(
buf
,
&
pReq
->
numOfFields
);
pReq
->
pFields
=
taosArrayInit
(
pReq
->
numOfFields
,
sizeof
(
SField
));
if
(
pReq
->
pFields
==
NULL
)
{
terrno
=
TSDB_CODE_OUT_OF_MEMORY
;
return
NULL
;
}
for
(
int32_t
i
=
0
;
i
<
pReq
->
numOfFields
;
++
i
)
{
SField
field
=
{
0
};
buf
=
taosDecodeFixedU8
(
buf
,
&
field
.
type
);
buf
=
taosDecodeFixedI32
(
buf
,
&
field
.
bytes
);
buf
=
taosDecodeStringTo
(
buf
,
field
.
name
);
if
(
taosArrayPush
(
pReq
->
pFields
,
&
field
)
==
NULL
)
{
terrno
=
TSDB_CODE_OUT_OF_MEMORY
;
return
NULL
;
}
}
return
buf
;
}
source/dnode/mnode/impl/src/mndStb.c
浏览文件 @
099f6f9e
...
...
@@ -601,26 +601,23 @@ static int32_t mndProcessVCreateStbRsp(SMnodeMsg *pRsp) {
}
static
int32_t
mndCheckAlterStbReq
(
SMAltertbReq
*
pAlter
)
{
pAlter
->
numOfSchemas
=
htonl
(
pAlter
->
numOfSchemas
);
if
(
pAlter
->
numOfFields
<
1
||
pAlter
->
numOfFields
!=
(
int32_t
)
taosArrayGetSize
(
pAlter
->
pFields
))
{
terrno
=
TSDB_CODE_MND_INVALID_STB_OPTION
;
return
-
1
;
}
for
(
int32_t
i
=
0
;
i
<
pAlter
->
numOfSchemas
;
++
i
)
{
SSchema
*
pSchema
=
&
pAlter
->
pSchemas
[
i
];
pSchema
->
colId
=
htonl
(
pSchema
->
colId
);
pSchema
->
bytes
=
htonl
(
pSchema
->
bytes
);
for
(
int32_t
i
=
0
;
i
<
pAlter
->
numOfFields
;
++
i
)
{
SField
*
pField
=
taosArrayGet
(
pAlter
->
pFields
,
i
);
if
(
pSchema
->
type
<=
0
)
{
terrno
=
TSDB_CODE_MND_INVALID_STB_OPTION
;
return
-
1
;
}
if
(
pSchema
->
colId
<
0
||
pSchema
->
colId
>=
(
TSDB_MAX_COLUMNS
+
TSDB_MAX_TAGS
))
{
if
(
pField
->
type
<=
0
)
{
terrno
=
TSDB_CODE_MND_INVALID_STB_OPTION
;
return
-
1
;
}
if
(
p
Schema
->
bytes
<=
0
)
{
if
(
p
Field
->
bytes
<=
0
)
{
terrno
=
TSDB_CODE_MND_INVALID_STB_OPTION
;
return
-
1
;
}
if
(
p
Schema
->
name
[
0
]
==
0
)
{
if
(
p
Field
->
name
[
0
]
==
0
)
{
terrno
=
TSDB_CODE_MND_INVALID_STB_OPTION
;
return
-
1
;
}
...
...
@@ -662,7 +659,7 @@ static int32_t mndAllocStbSchemas(const SStbObj *pOld, SStbObj *pNew) {
return
0
;
}
static
int32_t
mndAddSuperTableTag
(
const
SStbObj
*
pOld
,
SStbObj
*
pNew
,
const
SSchema
*
pSchema
s
,
int32_t
ntags
)
{
static
int32_t
mndAddSuperTableTag
(
const
SStbObj
*
pOld
,
SStbObj
*
pNew
,
SArray
*
pField
s
,
int32_t
ntags
)
{
if
(
pOld
->
numOfTags
+
ntags
>
TSDB_MAX_TAGS
)
{
terrno
=
TSDB_CODE_MND_TOO_MANY_TAGS
;
return
-
1
;
...
...
@@ -673,33 +670,34 @@ static int32_t mndAddSuperTableTag(const SStbObj *pOld, SStbObj *pNew, const SSc
return
-
1
;
}
pNew
->
numOfTags
=
pNew
->
numOfTags
+
ntags
;
if
(
mndAllocStbSchemas
(
pOld
,
pNew
)
!=
0
)
{
return
-
1
;
}
for
(
int32_t
i
=
0
;
i
<
ntags
;
i
++
)
{
if
(
mndFindSuperTableColumnIndex
(
pOld
,
pSchemas
[
i
].
name
)
>
0
)
{
SField
*
pField
=
taosArrayGet
(
pFields
,
i
);
if
(
mndFindSuperTableColumnIndex
(
pOld
,
pField
->
name
)
>
0
)
{
terrno
=
TSDB_CODE_MND_COLUMN_ALREADY_EXIST
;
return
-
1
;
}
if
(
mndFindSuperTableTagIndex
(
pOld
,
p
Schemas
[
i
].
name
)
>
0
)
{
if
(
mndFindSuperTableTagIndex
(
pOld
,
p
Field
->
name
)
>
0
)
{
terrno
=
TSDB_CODE_MND_TAG_ALREADY_EXIST
;
return
-
1
;
}
}
pNew
->
numOfTags
=
pNew
->
numOfTags
+
ntags
;
if
(
mndAllocStbSchemas
(
pOld
,
pNew
)
!=
0
)
{
return
-
1
;
}
memcpy
(
pNew
->
pTags
+
pOld
->
numOfTags
,
pSchemas
,
sizeof
(
SSchema
)
*
ntags
);
for
(
int32_t
i
=
pOld
->
numOfTags
;
i
<
pNew
->
numOfTags
;
i
++
)
{
SSchema
*
pSchema
=
&
pNew
->
pTags
[
i
];
SSchema
*
pSchema
=
&
pNew
->
pTags
[
pOld
->
numOfTags
+
i
];
pSchema
->
bytes
=
pField
->
bytes
;
pSchema
->
type
=
pField
->
type
;
memcpy
(
pSchema
->
name
,
pField
->
name
,
TSDB_COL_NAME_LEN
);
pSchema
->
colId
=
pNew
->
nextColId
;
pNew
->
nextColId
++
;
mDebug
(
"stb:%s, start to add tag %s"
,
pNew
->
name
,
pSchema
->
name
);
}
pNew
->
version
++
;
mDebug
(
"stb:%s, start to add tag %s"
,
pNew
->
name
,
pSchemas
[
0
].
name
);
return
0
;
}
...
...
@@ -722,7 +720,18 @@ static int32_t mndDropSuperTableTag(const SStbObj *pOld, SStbObj *pNew, const ch
return
0
;
}
static
int32_t
mndAlterStbTagName
(
const
SStbObj
*
pOld
,
SStbObj
*
pNew
,
const
char
*
oldTagName
,
const
char
*
newTagName
)
{
static
int32_t
mndAlterStbTagName
(
const
SStbObj
*
pOld
,
SStbObj
*
pNew
,
SArray
*
pFields
)
{
if
((
int32_t
)
taosArrayGetSize
(
pFields
)
!=
2
)
{
terrno
=
TSDB_CODE_MND_INVALID_STB_OPTION
;
return
-
1
;
}
SField
*
pField0
=
taosArrayGet
(
pFields
,
0
);
SField
*
pField1
=
taosArrayGet
(
pFields
,
1
);
const
char
*
oldTagName
=
pField0
->
name
;
const
char
*
newTagName
=
pField1
->
name
;
int32_t
tag
=
mndFindSuperTableTagIndex
(
pOld
,
oldTagName
);
if
(
tag
<
0
)
{
terrno
=
TSDB_CODE_MND_TAG_NOT_EXIST
;
...
...
@@ -751,8 +760,8 @@ static int32_t mndAlterStbTagName(const SStbObj *pOld, SStbObj *pNew, const char
return
0
;
}
static
int32_t
mndAlterStbTagBytes
(
const
SStbObj
*
pOld
,
SStbObj
*
pNew
,
const
S
Schema
*
pSchema
)
{
int32_t
tag
=
mndFindSuperTableTagIndex
(
pOld
,
p
Schema
->
name
);
static
int32_t
mndAlterStbTagBytes
(
const
SStbObj
*
pOld
,
SStbObj
*
pNew
,
const
S
Field
*
pField
)
{
int32_t
tag
=
mndFindSuperTableTagIndex
(
pOld
,
p
Field
->
name
);
if
(
tag
<
0
)
{
terrno
=
TSDB_CODE_MND_TAG_NOT_EXIST
;
return
-
1
;
...
...
@@ -769,51 +778,52 @@ static int32_t mndAlterStbTagBytes(const SStbObj *pOld, SStbObj *pNew, const SSc
return
-
1
;
}
if
(
p
Schema
->
bytes
<=
pTag
->
bytes
)
{
if
(
p
Field
->
bytes
<=
pTag
->
bytes
)
{
terrno
=
TSDB_CODE_MND_INVALID_ROW_BYTES
;
return
-
1
;
}
pTag
->
bytes
=
p
Schema
->
bytes
;
pTag
->
bytes
=
p
Field
->
bytes
;
pNew
->
version
++
;
mDebug
(
"stb:%s, start to modify tag len %s to %d"
,
pNew
->
name
,
p
Schema
->
name
,
pSchema
->
bytes
);
mDebug
(
"stb:%s, start to modify tag len %s to %d"
,
pNew
->
name
,
p
Field
->
name
,
pField
->
bytes
);
return
0
;
}
static
int32_t
mndAddSuperTableColumn
(
const
SStbObj
*
pOld
,
SStbObj
*
pNew
,
const
SSchema
*
pSchema
s
,
int32_t
ncols
)
{
static
int32_t
mndAddSuperTableColumn
(
const
SStbObj
*
pOld
,
SStbObj
*
pNew
,
SArray
*
pField
s
,
int32_t
ncols
)
{
if
(
pOld
->
numOfColumns
+
ncols
+
pOld
->
numOfTags
>
TSDB_MAX_COLUMNS
)
{
terrno
=
TSDB_CODE_MND_TOO_MANY_COLUMNS
;
return
-
1
;
}
pNew
->
numOfColumns
=
pNew
->
numOfColumns
+
ncols
;
if
(
mndAllocStbSchemas
(
pOld
,
pNew
)
!=
0
)
{
return
-
1
;
}
for
(
int32_t
i
=
0
;
i
<
ncols
;
i
++
)
{
if
(
mndFindSuperTableColumnIndex
(
pOld
,
pSchemas
[
i
].
name
)
>
0
)
{
SField
*
pField
=
taosArrayGet
(
pFields
,
i
);
if
(
mndFindSuperTableColumnIndex
(
pOld
,
pField
->
name
)
>
0
)
{
terrno
=
TSDB_CODE_MND_COLUMN_ALREADY_EXIST
;
return
-
1
;
}
if
(
mndFindSuperTableTagIndex
(
pOld
,
p
Schemas
[
i
].
name
)
>
0
)
{
if
(
mndFindSuperTableTagIndex
(
pOld
,
p
Field
->
name
)
>
0
)
{
terrno
=
TSDB_CODE_MND_TAG_ALREADY_EXIST
;
return
-
1
;
}
}
pNew
->
numOfColumns
=
pNew
->
numOfColumns
+
ncols
;
if
(
mndAllocStbSchemas
(
pOld
,
pNew
)
!=
0
)
{
return
-
1
;
}
memcpy
(
pNew
->
pColumns
+
pOld
->
numOfColumns
,
pSchemas
,
sizeof
(
SSchema
)
*
ncols
);
for
(
int32_t
i
=
pOld
->
numOfColumns
;
i
<
pNew
->
numOfColumns
;
i
++
)
{
SSchema
*
pSchema
=
&
pNew
->
pColumns
[
i
];
SSchema
*
pSchema
=
&
pNew
->
pColumns
[
pOld
->
numOfColumns
+
i
];
pSchema
->
bytes
=
pField
->
bytes
;
pSchema
->
type
=
pField
->
type
;
memcpy
(
pSchema
->
name
,
pField
->
name
,
TSDB_COL_NAME_LEN
);
pSchema
->
colId
=
pNew
->
nextColId
;
pNew
->
nextColId
++
;
mDebug
(
"stb:%s, start to add column %s"
,
pNew
->
name
,
pSchema
->
name
);
}
pNew
->
version
++
;
mDebug
(
"stb:%s, start to add column %s"
,
pNew
->
name
,
pSchemas
[
0
].
name
);
return
0
;
}
...
...
@@ -846,8 +856,8 @@ static int32_t mndDropSuperTableColumn(const SStbObj *pOld, SStbObj *pNew, const
return
0
;
}
static
int32_t
mndAlterStbColumnBytes
(
const
SStbObj
*
pOld
,
SStbObj
*
pNew
,
const
S
Schema
*
pSchema
)
{
int32_t
col
=
mndFindSuperTableColumnIndex
(
pOld
,
p
Schema
->
name
);
static
int32_t
mndAlterStbColumnBytes
(
const
SStbObj
*
pOld
,
SStbObj
*
pNew
,
const
S
Field
*
pField
)
{
int32_t
col
=
mndFindSuperTableColumnIndex
(
pOld
,
p
Field
->
name
);
if
(
col
<
0
)
{
terrno
=
TSDB_CODE_MND_COLUMN_NOT_EXIST
;
return
-
1
;
...
...
@@ -855,7 +865,7 @@ static int32_t mndAlterStbColumnBytes(const SStbObj *pOld, SStbObj *pNew, const
uint32_t
nLen
=
0
;
for
(
int32_t
i
=
0
;
i
<
pOld
->
numOfColumns
;
++
i
)
{
nLen
+=
(
pOld
->
pColumns
[
i
].
colId
==
col
)
?
p
Schema
->
bytes
:
pOld
->
pColumns
[
i
].
bytes
;
nLen
+=
(
pOld
->
pColumns
[
i
].
colId
==
col
)
?
p
Field
->
bytes
:
pOld
->
pColumns
[
i
].
bytes
;
}
if
(
nLen
>
TSDB_MAX_BYTES_PER_ROW
)
{
...
...
@@ -873,15 +883,15 @@ static int32_t mndAlterStbColumnBytes(const SStbObj *pOld, SStbObj *pNew, const
return
-
1
;
}
if
(
p
Schema
->
bytes
<=
pCol
->
bytes
)
{
if
(
p
Field
->
bytes
<=
pCol
->
bytes
)
{
terrno
=
TSDB_CODE_MND_INVALID_ROW_BYTES
;
return
-
1
;
}
pCol
->
bytes
=
p
Schema
->
bytes
;
pCol
->
bytes
=
p
Field
->
bytes
;
pNew
->
version
++
;
mDebug
(
"stb:%s, start to modify col len %s to %d"
,
pNew
->
name
,
p
Schema
->
name
,
pSchema
->
bytes
);
mDebug
(
"stb:%s, start to modify col len %s to %d"
,
pNew
->
name
,
p
Field
->
name
,
pField
->
bytes
);
return
0
;
}
...
...
@@ -950,28 +960,29 @@ static int32_t mndAlterStb(SMnode *pMnode, SMnodeMsg *pReq, const SMAltertbReq *
int32_t
code
=
-
1
;
STrans
*
pTrans
=
NULL
;
SField
*
pField0
=
taosArrayGet
(
pAlter
->
pFields
,
0
);
switch
(
pAlter
->
alterType
)
{
case
TSDB_ALTER_TABLE_ADD_TAG
:
code
=
mndAddSuperTableTag
(
pOld
,
&
stbObj
,
pAlter
->
p
Schemas
,
1
);
code
=
mndAddSuperTableTag
(
pOld
,
&
stbObj
,
pAlter
->
p
Fields
,
pAlter
->
numOfFields
);
break
;
case
TSDB_ALTER_TABLE_DROP_TAG
:
code
=
mndDropSuperTableTag
(
pOld
,
&
stbObj
,
p
Alter
->
pSchemas
[
0
].
name
);
code
=
mndDropSuperTableTag
(
pOld
,
&
stbObj
,
p
Field0
->
name
);
break
;
case
TSDB_ALTER_TABLE_UPDATE_TAG_NAME
:
code
=
mndAlterStbTagName
(
pOld
,
&
stbObj
,
pAlter
->
p
Schemas
[
0
].
name
,
pAlter
->
pSchemas
[
1
].
name
);
code
=
mndAlterStbTagName
(
pOld
,
&
stbObj
,
pAlter
->
p
Fields
);
break
;
case
TSDB_ALTER_TABLE_UPDATE_TAG_BYTES
:
code
=
mndAlterStbTagBytes
(
pOld
,
&
stbObj
,
&
pAlter
->
pSchemas
[
0
]
);
code
=
mndAlterStbTagBytes
(
pOld
,
&
stbObj
,
pField0
);
break
;
case
TSDB_ALTER_TABLE_ADD_COLUMN
:
code
=
mndAddSuperTableColumn
(
pOld
,
&
stbObj
,
pAlter
->
p
Schemas
,
1
);
code
=
mndAddSuperTableColumn
(
pOld
,
&
stbObj
,
pAlter
->
p
Fields
,
pAlter
->
numOfFields
);
break
;
case
TSDB_ALTER_TABLE_DROP_COLUMN
:
code
=
mndDropSuperTableColumn
(
pOld
,
&
stbObj
,
p
Alter
->
pSchemas
[
0
].
name
);
code
=
mndDropSuperTableColumn
(
pOld
,
&
stbObj
,
p
Field0
->
name
);
break
;
case
TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES
:
code
=
mndAlterStbColumnBytes
(
pOld
,
&
stbObj
,
&
pAlter
->
pSchemas
[
0
]
);
code
=
mndAlterStbColumnBytes
(
pOld
,
&
stbObj
,
pField0
);
break
;
default:
terrno
=
TSDB_CODE_MND_INVALID_STB_OPTION
;
...
...
@@ -1001,40 +1012,43 @@ ALTER_STB_OVER:
}
static
int32_t
mndProcessMAlterStbReq
(
SMnodeMsg
*
pReq
)
{
SMnode
*
pMnode
=
pReq
->
pMnode
;
SMAltertbReq
*
pAlter
=
pReq
->
rpcMsg
.
pCont
;
SMnode
*
pMnode
=
pReq
->
pMnode
;
int32_t
code
=
-
1
;
SDbObj
*
pDb
=
NULL
;
SStbObj
*
pStb
=
NULL
;
SMAltertbReq
alterReq
=
{
0
};
mDebug
(
"stb:%s, start to alter"
,
pAlter
->
name
)
;
if
(
tDeserializeSMAlterStbReq
(
pReq
->
rpcMsg
.
pCont
,
&
alterReq
)
==
NULL
)
goto
ALTER_STB_OVER
;
if
(
mndCheckAlterStbReq
(
pAlter
)
!=
0
)
{
mError
(
"stb:%s, failed to alter since %s"
,
pAlter
->
name
,
terrstr
());
return
-
1
;
}
mDebug
(
"stb:%s, start to alter"
,
alterReq
.
name
);
if
(
mndCheckAlterStbReq
(
&
alterReq
)
!=
0
)
goto
ALTER_STB_OVER
;
SDbObj
*
pDb
=
mndAcquireDbByStb
(
pMnode
,
pAlter
->
name
);
pDb
=
mndAcquireDbByStb
(
pMnode
,
alterReq
.
name
);
if
(
pDb
==
NULL
)
{
terrno
=
TSDB_CODE_MND_INVALID_DB
;
mError
(
"stb:%s, failed to alter since %s"
,
pAlter
->
name
,
terrstr
());
return
-
1
;
goto
ALTER_STB_OVER
;
}
SStbObj
*
pStb
=
mndAcquireStb
(
pMnode
,
pAlter
->
name
);
pStb
=
mndAcquireStb
(
pMnode
,
alterReq
.
name
);
if
(
pStb
==
NULL
)
{
mndReleaseDb
(
pMnode
,
pDb
);
terrno
=
TSDB_CODE_MND_STB_NOT_EXIST
;
mError
(
"stb:%s, failed to alter since %s"
,
pAlter
->
name
,
terrstr
());
return
-
1
;
goto
ALTER_STB_OVER
;
}
int32_t
code
=
mndAlterStb
(
pMnode
,
pReq
,
pAlter
,
pDb
,
pStb
);
mndReleaseStb
(
pMnode
,
pStb
);
code
=
mndAlterStb
(
pMnode
,
pReq
,
&
alterReq
,
pDb
,
pStb
);
ALTER_STB_OVER:
if
(
code
!=
0
)
{
mError
(
"stb:%s, failed to alter since %s"
,
pAlter
->
name
,
terrstr
());
return
code
;
mError
(
"stb:%s, failed to alter since %s"
,
alterReq
.
name
,
terrstr
());
}
else
{
code
=
TSDB_CODE_MND_ACTION_IN_PROGRESS
;
}
return
TSDB_CODE_MND_ACTION_IN_PROGRESS
;
mndReleaseStb
(
pMnode
,
pStb
);
mndReleaseDb
(
pMnode
,
pDb
);
taosArrayClear
(
alterReq
.
pFields
);
return
code
;
}
static
int32_t
mndProcessVAlterStbRsp
(
SMnodeMsg
*
pRsp
)
{
...
...
source/dnode/mnode/impl/test/stb/stb.cpp
浏览文件 @
099f6f9e
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录