fix: delete file restart corrupt error

This commit is contained in:
Hongze Cheng 2022-09-13 16:15:07 +08:00
parent 4b4d8d7f17
commit 0107e92e64
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ static int32_t tsdbScanAndTryFixFS(STsdb *pTsdb) {
goto _err;
}
if (size != pTsdb->fs.pDelFile->size) {
if (size != tsdbLogicToFileSize(pTsdb->fs.pDelFile->size, pTsdb->pVnode->config.tsdbPageSize)) {
code = TSDB_CODE_FILE_CORRUPTED;
goto _err;
}