From dcd59e570f5b2fb3df84a4ac37fc3a6d7ef27d89 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Tue, 9 Nov 2021 14:17:18 +0800 Subject: [PATCH] refact --- source/dnode/vnode/impl/inc/vnodeDef.h | 3 ++ source/dnode/vnode/impl/inc/vnodeFileSystem.h | 30 +++++++++++++++++++ source/dnode/vnode/impl/src/vnodeFileSystem.c | 16 ++++++++++ 3 files changed, 49 insertions(+) create mode 100644 source/dnode/vnode/impl/inc/vnodeFileSystem.h create mode 100644 source/dnode/vnode/impl/src/vnodeFileSystem.c diff --git a/source/dnode/vnode/impl/inc/vnodeDef.h b/source/dnode/vnode/impl/inc/vnodeDef.h index db6e742f44..12ac04ac8b 100644 --- a/source/dnode/vnode/impl/inc/vnodeDef.h +++ b/source/dnode/vnode/impl/inc/vnodeDef.h @@ -21,6 +21,7 @@ #include "vnode.h" #include "vnodeAllocatorPool.h" #include "vnodeCommit.h" +#include "vnodeFileSystem.h" #include "vnodeOptions.h" #include "vnodeStateMgr.h" #include "vnodeSync.h" @@ -38,6 +39,8 @@ struct SVnode { SMeta* pMeta; STsdb* pTsdb; STQ* pTq; + SVnodeSync* pSync; + SVnodeFS* pFs; }; #ifdef __cplusplus diff --git a/source/dnode/vnode/impl/inc/vnodeFileSystem.h b/source/dnode/vnode/impl/inc/vnodeFileSystem.h new file mode 100644 index 0000000000..2a885c9c34 --- /dev/null +++ b/source/dnode/vnode/impl/inc/vnodeFileSystem.h @@ -0,0 +1,30 @@ +/* + * 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 . + */ + +#ifndef _TD_VNODE_FILE_SYSTEM_H_ +#define _TD_VNODE_FILE_SYSTEM_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { +} SVnodeFS; + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_VNODE_FILE_SYSTEM_H_*/ \ No newline at end of file diff --git a/source/dnode/vnode/impl/src/vnodeFileSystem.c b/source/dnode/vnode/impl/src/vnodeFileSystem.c new file mode 100644 index 0000000000..5e9f89ccd5 --- /dev/null +++ b/source/dnode/vnode/impl/src/vnodeFileSystem.c @@ -0,0 +1,16 @@ +/* + * 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 "vnodeDef.h" \ No newline at end of file -- GitLab