From f184d1d3d4755cae8acd6081028de0fc37c8cc4b Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Tue, 2 Nov 2021 18:20:16 +0800 Subject: [PATCH] refact --- source/dnode/vnode/meta/inc/metaOptions.h | 1 + source/dnode/vnode/meta/inc/metaQuery.h | 27 +++++++++++++++++++++++ source/dnode/vnode/meta/src/metaQuery.c | 14 ++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 source/dnode/vnode/meta/inc/metaQuery.h create mode 100644 source/dnode/vnode/meta/src/metaQuery.c diff --git a/source/dnode/vnode/meta/inc/metaOptions.h b/source/dnode/vnode/meta/inc/metaOptions.h index 7033a873df..500f2d5e59 100644 --- a/source/dnode/vnode/meta/inc/metaOptions.h +++ b/source/dnode/vnode/meta/inc/metaOptions.h @@ -26,6 +26,7 @@ extern const SMetaOptions defaultMetaOptions; int metaValidateOptions(const SMetaOptions *); void metaOptionsCopy(SMetaOptions *pDest, const SMetaOptions *pSrc); + #ifdef __cplusplus } #endif diff --git a/source/dnode/vnode/meta/inc/metaQuery.h b/source/dnode/vnode/meta/inc/metaQuery.h new file mode 100644 index 0000000000..110df8dd45 --- /dev/null +++ b/source/dnode/vnode/meta/inc/metaQuery.h @@ -0,0 +1,27 @@ +/* + * 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_META_QUERY_H_ +#define _TD_META_QUERY_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_META_QUERY_H_*/ \ No newline at end of file diff --git a/source/dnode/vnode/meta/src/metaQuery.c b/source/dnode/vnode/meta/src/metaQuery.c new file mode 100644 index 0000000000..6dea4a4e57 --- /dev/null +++ b/source/dnode/vnode/meta/src/metaQuery.c @@ -0,0 +1,14 @@ +/* + * 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 . + */ \ No newline at end of file