提交 106f701e 编写于 作者: H Hongze Cheng

more code

上级 4775b26e
......@@ -33,7 +33,26 @@ static int32_t tsdbMergerOpen(SMerger *merger) {
static int32_t tsdbMergerClose(SMerger *merger) {
// TODO
ASSERT(0);
int32_t code = 0;
int32_t lino = 0;
SVnode *pVnode = merger->tsdb->pVnode;
int32_t vid = TD_VID(pVnode);
STFileSystem *fs = merger->tsdb->pFS;
// edit file system
code = tsdbFSEditBegin(fs, &merger->fopArr, TSDB_FEDIT_MERGE);
TSDB_CHECK_CODE(code, lino, _exit);
code = tsdbFSEditCommit(fs);
TSDB_CHECK_CODE(code, lino, _exit);
// clear the merge
TARRAY2_FREE(&merger->fopArr);
_exit:
if (code) {
} else {
}
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册