Merge pull request #17072 from taosdata/fix/td-19061
fix: wrong file corrput report
This commit is contained in:
commit
9cc6c62967
|
@ -88,9 +88,8 @@ typedef struct SLDataIter SLDataIter;
|
|||
static FORCE_INLINE int64_t tsdbLogicToFileSize(int64_t lSize, int32_t szPage) {
|
||||
int64_t fOffSet = LOGIC_TO_FILE_OFFSET(lSize, szPage);
|
||||
int64_t pgno = OFFSET_PGNO(fOffSet, szPage);
|
||||
int32_t szPageCont = PAGE_CONTENT_SIZE(szPage);
|
||||
|
||||
if (fOffSet % szPageCont == 0) {
|
||||
if (fOffSet % szPage == 0) {
|
||||
pgno--;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue