Merge pull request #21274 from taosdata/fix/invalid-message

invalid message
This commit is contained in:
wade zhang 2023-05-12 17:25:28 +08:00 committed by GitHub
commit f1ca28df09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ int32_t vmProcessAlterVnodeTypeReq(SVnodeMgmt *pMgmt, SRpcMsg *pMsg) {
}
SReplica *pReplica = NULL;
if(req.selfIndex > 0){
if(req.selfIndex != -1){
pReplica = &req.replicas[req.selfIndex];
}
else{