fix TSDB commit problem
This commit is contained in:
parent
9283f1cbbe
commit
598d8deb43
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue