fix restart bug

This commit is contained in:
Hongze Cheng 2020-07-22 10:07:57 +08:00
parent 5e8b11415a
commit 946f6cb87f
1 changed files with 1 additions and 0 deletions

View File

@ -795,6 +795,7 @@ static int tsdbRestoreInfo(STsdbRepo *pRepo) {
for (int i = 1; i < pRepo->config.maxTables; i++) {
STable *pTable = pMeta->tables[i];
if (pTable == NULL) continue;
tsdbSetHelperTable(&rhelper, pTable, pRepo);
SCompIdx *pIdx = &(rhelper.curCompIdx);
if (pIdx->offset > 0 && pTable->lastKey < pIdx->maxKey) pTable->lastKey = pIdx->maxKey;