fix hb bug
This commit is contained in:
parent
e158dbeed9
commit
e4d53ef3c7
|
@ -1960,7 +1960,7 @@ int32_t tDeserializeSUseDbBatchRsp(void *buf, int32_t bufLen, SUseDbBatchRsp *pR
|
||||||
int32_t numOfBatch = taosArrayGetSize(pRsp->pArray);
|
int32_t numOfBatch = taosArrayGetSize(pRsp->pArray);
|
||||||
if (tDecodeI32(&decoder, &numOfBatch) < 0) return -1;
|
if (tDecodeI32(&decoder, &numOfBatch) < 0) return -1;
|
||||||
|
|
||||||
pRsp->pArray = taosArrayInit(numOfBatch, sizeof(SUseDbBatchRsp));
|
pRsp->pArray = taosArrayInit(numOfBatch, sizeof(SUseDbRsp));
|
||||||
if (pRsp->pArray == NULL) {
|
if (pRsp->pArray == NULL) {
|
||||||
terrno = TSDB_CODE_OUT_OF_MEMORY;
|
terrno = TSDB_CODE_OUT_OF_MEMORY;
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue