diff --git a/src/system/src/vnodeImport.c b/src/system/src/vnodeImport.c index 0e868c5b2cd2e19fe40c529764ee1e0477f43618..34a7a3b7d0efd54c2ec0d1068c05b066dde7b3d1 100644 --- a/src/system/src/vnodeImport.c +++ b/src/system/src/vnodeImport.c @@ -226,7 +226,7 @@ int vnodeOpenFileForImport(SImportInfo *pImport, char *payload, SHeadInfo *pHinf if (pVnode->commitFileId < pImport->fileId) { if (pHinfo->compInfo.numOfBlocks > 0) - pHinfo->leftOffset += pHinfo->compInfo.numOfBlocks * sizeof(SCompBlock) + sizeof(TSCKSUM); + pHinfo->leftOffset += pHinfo->compInfo.numOfBlocks * sizeof(SCompBlock); rowsBefore = vnodeProcessLastBlock(pImport, pHinfo, data); diff --git a/src/util/src/tglobalcfg.c b/src/util/src/tglobalcfg.c index bd293fc125d2cbbd87c9fd94d4a777d985e350ef..c8b1507f2cd330cf4e9ba8e0ca5635c5231f2984 100644 --- a/src/util/src/tglobalcfg.c +++ b/src/util/src/tglobalcfg.c @@ -590,8 +590,8 @@ void tsReadGlobalLogConfig() { if (full_path.we_wordv != NULL && full_path.we_wordv[0] != NULL) { strcpy(configDir, full_path.we_wordv[0]); } else { - strcpy(configDir, "/etc/taos"); printf("configDir:%s not there, use default value: /etc/taos", configDir); + strcpy(configDir, "/etc/taos"); } wordfree(&full_path);