enh: sort vnodeGid by dnodeId after vgroup altered

This commit is contained in:
Benguang Zhao 2023-04-04 10:27:31 +08:00
parent 1e29384de4
commit 9ce8915c7a
1 changed files with 2 additions and 0 deletions

View File

@ -2084,6 +2084,8 @@ int32_t mndBuildAlterVgroupAction(SMnode *pMnode, STrans *pTrans, SDbObj *pOldDb
return -1; return -1;
} }
mndSortVnodeGid(&newVgroup);
{ {
SSdbRaw *pVgRaw = mndVgroupActionEncode(&newVgroup); SSdbRaw *pVgRaw = mndVgroupActionEncode(&newVgroup);
if (pVgRaw == NULL) return -1; if (pVgRaw == NULL) return -1;