merge
This commit is contained in:
parent
b099da1529
commit
078e13b3aa
|
@ -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) {
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue