提交 598d8deb 编写于 作者: H Hongze Cheng

fix TSDB commit problem

上级 9283f1cb
...@@ -142,12 +142,13 @@ int tsdbPrepareCommit(STsdb *pTsdb) { ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册