diff --git a/source/dnode/vnode/src/meta/metaCommit.c b/source/dnode/vnode/src/meta/metaCommit.c deleted file mode 100644 index 805e4f3e3d5f6256729b018e07589d7f7435d6bf..0000000000000000000000000000000000000000 --- a/source/dnode/vnode/src/meta/metaCommit.c +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2019 TAOS Data, Inc. - * - * This program is free software: you can use, redistribute, and/or modify - * it under the terms of the GNU Affero General Public License, version 3 - * or later ("AGPL"), as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -#include "meta.h" - -int metaCommit(SMeta *pMeta) { - // TODO - return 0; -} \ No newline at end of file diff --git a/source/dnode/vnode/src/meta/metaTDBImpl.c b/source/dnode/vnode/src/meta/metaTDBImpl.c index cfbd83df5c4bc61fde68fe435ea302ca9643d0e3..e934caa7e34060462204b2b8aa984482037128f1 100644 --- a/source/dnode/vnode/src/meta/metaTDBImpl.c +++ b/source/dnode/vnode/src/meta/metaTDBImpl.c @@ -167,6 +167,8 @@ int metaOpenDB(SMeta *pMeta) { return -1; } + tdbBegin(pMetaDb->pEnv, NULL); + pMeta->pDB = pMetaDb; return 0; } @@ -701,3 +703,8 @@ static void *metaDecodeTbInfo(void *buf, STbCfg *pTbCfg) { } return buf; } + +int metaCommit(SMeta *pMeta) { + tdbCommit(pMeta->pDB->pEnv, NULL); + return 0; +} \ No newline at end of file