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) { int tsdbCommit(STsdb *pRepo) {
STsdbMemTable *pMem = pRepo->imem; SCommitH commith = {0};
SCommitH commith = {0}; SDFileSet *pSet = NULL;
SDFileSet *pSet = NULL; int fid;
int fid;
if (pRepo->imem == NULL) return 0; // if (pRepo->imem == NULL) return 0;
pRepo->imem = pRepo->mem;
pRepo->mem = NULL;
tsdbStartCommit(pRepo); tsdbStartCommit(pRepo);
// Resource initialization // Resource initialization