提交 ee334d6f 编写于 作者: L lichuang

[TD-3963]fix alter db bug when there is no vgroup case

上级 e141eb96
......@@ -1090,7 +1090,14 @@ static int32_t mnodeAlterDbFp(SMnodeMsg *pMsg) {
}
// in case there is no vnode(no db in vnode)
if (pMsg->expected == 0) {
return TSDB_CODE_SUCCESS;
SSdbRow row = {
.type = SDB_OPER_GLOBAL,
.pTable = tsDbSdb,
.pObj = pDb,
.pMsg = pMsg,
};
return sdbUpdateRow(&row);
}
mDebug("db:%s, all vgroups is altered", pDb->name);
mLInfo("db:%s, is alterd by %s", pDb->name, mnodeGetUserFromMsg(pMsg));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册