提交 d57129d7 编写于 作者: H Hongze Cheng

fix: another big bug

上级 30f53e2f
......@@ -140,7 +140,7 @@ static int32_t tsdbWriteFile(STsdbFD *pFD, int64_t offset, uint8_t *pBuf, int64_
code = tsdbWriteFilePage(pFD);
if (code) goto _exit;
if (pgno < pFD->szFile) {
if (pgno <= pFD->szFile) {
code = tsdbReadFilePage(pFD, pgno);
if (code) goto _exit;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册