fix: trans conflict during update dnode info
This commit is contained in:
parent
5602a5eac2
commit
6e7c6a4870
|
@ -612,7 +612,7 @@ static int32_t mndUpdateDnodeObj(SMnode *pMnode, SDnodeObj *pDnode) {
|
||||||
tstrncpy(infoReq.machineId, pDnode->machineId, TSDB_MACHINE_ID_LEN + 1);
|
tstrncpy(infoReq.machineId, pDnode->machineId, TSDB_MACHINE_ID_LEN + 1);
|
||||||
|
|
||||||
if ((contLen = tSerializeSDnodeInfoReq(NULL, 0, &infoReq)) <= 0) {
|
if ((contLen = tSerializeSDnodeInfoReq(NULL, 0, &infoReq)) <= 0) {
|
||||||
TAOS_RETURN(contLen);
|
TAOS_RETURN(contLen ? contLen : TSDB_CODE_OUT_OF_MEMORY);
|
||||||
}
|
}
|
||||||
pReq = rpcMallocCont(contLen);
|
pReq = rpcMallocCont(contLen);
|
||||||
if (pReq == NULL) {
|
if (pReq == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue