提交 8e11a6b8 编写于 作者: S slguan

offset calculation error while write to disk

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