diff --git a/src/tsdb/src/tsdbMain.c b/src/tsdb/src/tsdbMain.c index e28d8f47bcc443ef3a3be8f641c4909916353133..fe03c8335eb2361e666e53087f5cae393bb3a593 100644 --- a/src/tsdb/src/tsdbMain.c +++ b/src/tsdb/src/tsdbMain.c @@ -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; }