From 8e11a6b8ecdd74d96bc71cf9ad57679e84fc91f9 Mon Sep 17 00:00:00 2001 From: slguan Date: Mon, 19 Aug 2019 09:26:22 +0800 Subject: [PATCH] offset calculation error while write to disk --- src/system/src/vnodeImport.c | 2 +- src/util/src/tglobalcfg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/src/vnodeImport.c b/src/system/src/vnodeImport.c index 0e868c5b2c..34a7a3b7d0 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 bd293fc125..c8b1507f2c 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); -- GitLab