fix client crash issue

This commit is contained in:
dapan1121 2021-04-13 14:36:01 +08:00
parent 289b805388
commit 4c152b6724
1 changed files with 1 additions and 0 deletions

View File

@ -266,6 +266,7 @@ int32_t tExtMemBufferFlush(tExtMemBuffer *pMemBuffer) {
size_t retVal = fwrite((char *)&(first->item), pMemBuffer->pageSize, 1, pMemBuffer->file);
if (retVal <= 0) { // failed to write to buffer, may be not enough space
ret = TAOS_SYSTEM_ERROR(errno);
pMemBuffer->pHead = first;
return ret;
}