Merge pull request #21291 from taosdata/feat/TD-24115-3.0D

feat: create dnode limited by grant of cpu cores
This commit is contained in:
dapan1121 2023-05-15 18:01:03 +08:00 committed by GitHub
commit 143d3b2ee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -751,7 +751,7 @@ static int32_t mndProcessCreateDnodeReq(SRpcMsg *pReq) {
SDnodeObj *pDnode = NULL; SDnodeObj *pDnode = NULL;
SCreateDnodeReq createReq = {0}; 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; code = terrno;
goto _OVER; goto _OVER;
} }