fix: wrong change

This commit is contained in:
Hongze Cheng 2024-08-21 10:41:23 +08:00
parent e20c36c022
commit 7e8e9ac7f1
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ static int32_t tsdbReadFileImp(STsdbFD *pFD, int64_t offset, uint8_t *pBuf, int6
int32_t szPgCont = PAGE_CONTENT_SIZE(pFD->szPage);
int64_t bOffset = fOffset % pFD->szPage;
if (bOffset < szPgCont) {
if (bOffset >= szPgCont) {
TSDB_CHECK_CODE(code = TSDB_CODE_INVALID_PARA, lino, _exit);
}