Fix problem JIRA TBASE-1100

This commit is contained in:
Hongze Cheng 2019-11-11 16:50:35 +08:00
parent 9cdbc4848a
commit 1b1b71dd24
1 changed files with 1 additions and 1 deletions

View File

@ -620,7 +620,7 @@ static int vnodeLoadNeededBlockData(SMeterObj *pObj, SImportHandle *pHandle, int
}
if (pHandle->tempBuffer == NULL) {
pHandle->tempBufferSize = pObj->maxBytes + EXTRA_BYTES;
pHandle->tempBufferSize = pObj->maxBytes * pObj->pointsPerFileBlock + EXTRA_BYTES;
pHandle->tempBuffer = malloc(pHandle->tempBufferSize);
if (pHandle->tempBuffer == NULL) {
dError("vid: %d, sid: %d, meterId: %s, failed to allocate memory, size: %ul", pObj->vnode, pObj->sid,