fix: another big bug

This commit is contained in:
Hongze Cheng 2022-09-05 12:03:03 +08:00
parent 30f53e2f5a
commit d57129d78d
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ static int32_t tsdbWriteFile(STsdbFD *pFD, int64_t offset, uint8_t *pBuf, int64_
code = tsdbWriteFilePage(pFD); code = tsdbWriteFilePage(pFD);
if (code) goto _exit; if (code) goto _exit;
if (pgno < pFD->szFile) { if (pgno <= pFD->szFile) {
code = tsdbReadFilePage(pFD, pgno); code = tsdbReadFilePage(pFD, pgno);
if (code) goto _exit; if (code) goto _exit;
} else { } else {