diff --git a/source/libs/index/src/index.c b/source/libs/index/src/index.c index d60bde718d958800580e17fcf92c47e4a1050926..500f5706491b61e05deea65d567b68ecc8cb1694 100644 --- a/source/libs/index/src/index.c +++ b/source/libs/index/src/index.c @@ -565,7 +565,7 @@ static int64_t indexGetAvaialbleVer(SIndex* sIdx, IndexCache* cache) { taosThreadMutexUnlock(&tf->mtx); if (rd != NULL) { - ver = (ver > rd->header.version ? ver : rd->header.verion) + 1; + ver = (ver > rd->header.version ? ver : rd->header.version) + 1; indexInfo("header: %" PRId64 ", ver: %" PRId64 "", rd->header.version, ver); } tfileReaderUnRef(rd);