提交 45c8c488 编写于 作者: dengyihao's avatar dengyihao

fix: index memory error

上级 d067104e
...@@ -565,7 +565,7 @@ static int64_t indexGetAvaialbleVer(SIndex* sIdx, IndexCache* cache) { ...@@ -565,7 +565,7 @@ static int64_t indexGetAvaialbleVer(SIndex* sIdx, IndexCache* cache) {
taosThreadMutexUnlock(&tf->mtx); taosThreadMutexUnlock(&tf->mtx);
if (rd != NULL) { if (rd != NULL) {
ver += MAX(ver, rd->header.version) + 1; ver = (ver > rd->header.version ? ver : rd->header.verion) + 1;
indexInfo("header: %" PRId64 ", ver: %" PRId64 "", rd->header.version, ver); indexInfo("header: %" PRId64 ", ver: %" PRId64 "", rd->header.version, ver);
} }
tfileReaderUnRef(rd); tfileReaderUnRef(rd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册