enh: save vnodes list file

This commit is contained in:
Shengliang Guan 2023-01-31 16:49:28 +08:00
parent fb0ef25dbd
commit e32d24ab1f
1 changed files with 5 additions and 0 deletions

View File

@ -359,6 +359,11 @@ int32_t vmProcessAlterHashRangeReq(SVnodeMgmt *pMgmt, SRpcMsg *pMsg) {
return -1;
}
if (vmWriteVnodeListToFile(pMgmt) != 0) {
dError("vgId:%d, failed to write vnode list since %s", dstVgId, terrstr());
return -1;
}
dInfo("vgId:%d, vnode hashrange is altered", dstVgId);
return 0;
}