提交 078e13b3 编写于 作者: H Hongze Cheng

merge

上级 b099da15
...@@ -110,6 +110,20 @@ static int vnodeOpenImpl(SVnode *pVnode) { ...@@ -110,6 +110,20 @@ static int vnodeOpenImpl(SVnode *pVnode) {
} }
// TODO: Open TQ // TODO: Open TQ
sprintf(dir, "%s/wal", pVnode->path);
pVnode->pTq = tqOpen(dir, NULL /* TODO */);
if (pVnode->pTq == NULL) {
// TODO: handle error
return -1;
}
// Open WAL
sprintf(dir, "%s/wal", pVnode->path);
pVnode->pWal = walOpen(dir, NULL /* TODO */);
if (pVnode->pWal == NULL) {
// TODO: handle error
return -1;
}
// TODO // TODO
return 0; return 0;
...@@ -117,8 +131,9 @@ static int vnodeOpenImpl(SVnode *pVnode) { ...@@ -117,8 +131,9 @@ static int vnodeOpenImpl(SVnode *pVnode) {
static void vnodeCloseImpl(SVnode *pVnode) { static void vnodeCloseImpl(SVnode *pVnode) {
if (pVnode) { if (pVnode) {
vnodeCloseAllocatorPool(pVnode); vnodeCloseBufPool(pVnode);
// TODO: Close TQ walClose(pVnode->pWal);
tqClose(pVnode->pTq);
tsdbClose(pVnode->pTsdb); tsdbClose(pVnode->pTsdb);
metaClose(pVnode->pMeta); metaClose(pVnode->pMeta);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册