diff --git a/src/tsdb/src/tsdbMain.c b/src/tsdb/src/tsdbMain.c index a22f9265e0a829f91292f427cdb81b20c8172f98..9cb04738534da529e7f31b4ec39f473b6e722061 100644 --- a/src/tsdb/src/tsdbMain.c +++ b/src/tsdb/src/tsdbMain.c @@ -802,6 +802,8 @@ static int tsdbRestoreLastRow(STsdbRepo *pRepo, STable *pTable, SReadH* pReadh, pCol->offset); } + pTable->lastKey = memRowKey(pTable->lastRow); + return 0; }