提交 6f3a448b 编写于 作者: 陶建辉(Jeff)'s avatar 陶建辉(Jeff)

fix issue #122

上级 21806f64
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册