feat: create dnode limited by grant of cpu cores

This commit is contained in:
kailixu 2023-05-13 20:10:02 +08:00
parent e12b70d268
commit 2b9f9add3a
1 changed files with 1 additions and 1 deletions

View File

@ -751,7 +751,7 @@ static int32_t mndProcessCreateDnodeReq(SRpcMsg *pReq) {
SDnodeObj *pDnode = NULL;
SCreateDnodeReq createReq = {0};
if ((terrno = grantCheck(TSDB_GRANT_DNODE)) != 0) {
if ((terrno = grantCheck(TSDB_GRANT_DNODE)) != 0 || (terrno = grantCheck(TSDB_GRANT_CPU_CORES)) != 0) {
code = terrno;
goto _OVER;
}