diff --git a/src/system/src/vnodeImport.c b/src/system/src/vnodeImport.c index 657001351c2d14a218b1143e55b49fc1d7690695..1d4ca240b6d1be463706c4adb4304924dea94fbf 100644 --- a/src/system/src/vnodeImport.c +++ b/src/system/src/vnodeImport.c @@ -93,8 +93,7 @@ int vnodeCloseFileForImport(SMeterObj *pObj, SHeadInfo *pHinfo) { SVnodeCfg *pCfg = &pVnode->cfg; TSCKSUM chksum = 0; - assert(pHinfo->newBlocks); - assert(pHinfo->compInfoOffset); + if (pHinfo->newBlocks == 0 || pHinfo->compInfoOffset == 0) return 0; if (pHinfo->oldNumOfBlocks == 0) write(pVnode->nfd, &chksum, sizeof(TSCKSUM));