fix: wrong file corrupt report
This commit is contained in:
parent
9ede5ac842
commit
19529d6606
|
@ -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