提交 ff081fdf 编写于 作者: C Cary Xu

update

上级 d294014f
......@@ -432,7 +432,7 @@ int32_t mnodeGetAvailableVgroup(SMnodeMsg *pMsg, SVgObj **ppVgroup, int32_t *pSi
SDbObj *pDb = pMsg->pDb;
pthread_mutex_lock(&pDb->mutex);
if (tVgId > 0) {
if (tVgId > 0 && tVgId < 1048576) {
for (int32_t v = 0; v < pDb->numOfVgroups; ++v) {
SVgObj *pVgroup = pDb->vgList[v];
if (pVgroup == NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册