fix compile warning
This commit is contained in:
parent
7e00527838
commit
c588c5980a
|
@ -177,7 +177,7 @@ static int tsdbRestoreInfo(STsdbRepo *pRepo) {
|
||||||
if (tsdbSetAndOpenHelperFile(&rhelper, pFGroup) < 0) goto _err;
|
if (tsdbSetAndOpenHelperFile(&rhelper, pFGroup) < 0) goto _err;
|
||||||
for (int i = 0; i < pRepo->config.maxTables; i++) {
|
for (int i = 0; i < pRepo->config.maxTables; i++) {
|
||||||
STable * pTable = pMeta->tables[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;
|
if (pIdx->offset > 0 && pTable->lastKey < pIdx->maxKey) pTable->lastKey = pIdx->maxKey;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue