fix compile warning

This commit is contained in:
hzcheng 2020-04-26 11:47:28 +08:00
parent 7e00527838
commit c588c5980a
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ static int tsdbRestoreInfo(STsdbRepo *pRepo) {
if (tsdbSetAndOpenHelperFile(&rhelper, pFGroup) < 0) goto _err;
for (int i = 0; i < pRepo->config.maxTables; i++) {
STable * pTable = pMeta->tables[i];
SCompIdx *pIdx = rhelper.pCompIdx[i];
SCompIdx *pIdx = &rhelper.pCompIdx[i];
if (pIdx->offset > 0 && pTable->lastKey < pIdx->maxKey) pTable->lastKey = pIdx->maxKey;
}