fix TSDB commit problem

This commit is contained in:
Hongze Cheng 2022-04-26 02:04:39 +00:00
parent 9283f1cbbe
commit 598d8deb43
1 changed files with 6 additions and 5 deletions

View File

@ -142,12 +142,13 @@ int tsdbPrepareCommit(STsdb *pTsdb) {
}
int tsdbCommit(STsdb *pRepo) {
STsdbMemTable *pMem = pRepo->imem;
SCommitH commith = {0};
SDFileSet *pSet = NULL;
int fid;
if (pRepo->imem == NULL) return 0;
// if (pRepo->imem == NULL) return 0;
pRepo->imem = pRepo->mem;
pRepo->mem = NULL;
tsdbStartCommit(pRepo);
// Resource initialization