From c588c5980ae69602ea75a7e843b796933d620124 Mon Sep 17 00:00:00 2001 From: hzcheng Date: Sun, 26 Apr 2020 11:47:28 +0800 Subject: [PATCH] fix compile warning --- src/tsdb/src/tsdbMain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsdb/src/tsdbMain.c b/src/tsdb/src/tsdbMain.c index e28d8f47bc..fe03c8335e 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; } -- GitLab