offset calculation error while write to disk
This commit is contained in:
parent
22aa8b08a7
commit
8e11a6b8ec
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue