fix: trans conflict during update dnode info

This commit is contained in:
kailixu 2024-07-30 19:15:21 +08:00
parent 5602a5eac2
commit 6e7c6a4870
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ static int32_t mndUpdateDnodeObj(SMnode *pMnode, SDnodeObj *pDnode) {
tstrncpy(infoReq.machineId, pDnode->machineId, TSDB_MACHINE_ID_LEN + 1);
if ((contLen = tSerializeSDnodeInfoReq(NULL, 0, &infoReq)) <= 0) {
TAOS_RETURN(contLen);
TAOS_RETURN(contLen ? contLen : TSDB_CODE_OUT_OF_MEMORY);
}
pReq = rpcMallocCont(contLen);
if (pReq == NULL) {