Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
552051da
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
552051da
编写于
11月 03, 2021
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refact
上级
903236fa
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
10 deletion
+14
-10
include/server/vnode/meta/impl/metaImpl.h
include/server/vnode/meta/impl/metaImpl.h
+2
-0
include/server/vnode/meta/meta.h
include/server/vnode/meta/meta.h
+8
-8
source/dnode/vnode/meta/src/metaDB.c
source/dnode/vnode/meta/src/metaDB.c
+1
-0
source/dnode/vnode/meta/src/metaIdx.c
source/dnode/vnode/meta/src/metaIdx.c
+1
-0
source/dnode/vnode/meta/src/metaTable.c
source/dnode/vnode/meta/src/metaTable.c
+1
-1
source/dnode/vnode/meta/test/metaAPITest.cpp
source/dnode/vnode/meta/test/metaAPITest.cpp
+1
-1
未找到文件。
include/server/vnode/meta/impl/metaImpl.h
浏览文件 @
552051da
...
...
@@ -29,6 +29,7 @@ struct SMetaOptions {
size_t
lruCacheSize
;
// LRU cache size
};
#if 0
typedef enum { META_INIT_TABLE = 0, META_SUPER_TABLE = 1, META_CHILD_TABLE = 2, META_NORMAL_TABLE = 3 } EMetaTableT;
typedef struct SSuperTableOpts {
tb_uid_t uid;
...
...
@@ -54,6 +55,7 @@ struct STableOptions {
SNormalTableOpts normalOpts;
};
};
#endif
#ifdef __cplusplus
}
...
...
include/server/vnode/meta/meta.h
浏览文件 @
552051da
...
...
@@ -23,15 +23,15 @@ extern "C" {
#endif
// Types exported
typedef
struct
SMeta
SMeta
;
typedef
struct
SMetaOptions
SMetaOptions
;
typedef
struct
ST
ableOptions
STable
Options
;
typedef
struct
SMeta
SMeta
;
typedef
struct
SMetaOptions
SMetaOptions
;
typedef
struct
ST
bOptions
STb
Options
;
// SMeta operations
SMeta
*
metaOpen
(
const
char
*
path
,
const
SMetaOptions
*
);
void
metaClose
(
SMeta
*
);
void
metaRemove
(
const
char
*
path
);
int
metaCreateTable
(
SMeta
*
pMeta
,
const
ST
able
Options
*
);
int
metaCreateTable
(
SMeta
*
pMeta
,
const
ST
b
Options
*
);
int
metaDropTable
(
SMeta
*
pMeta
,
tb_uid_t
uid
);
int
metaCommit
(
SMeta
*
);
...
...
@@ -41,11 +41,11 @@ void metaOptionsClear(SMetaOptions *);
// STableOpts
#define META_TABLE_OPTS_DECLARE(name) STableOpts name = {0}
void
metaNormalTableOptsInit
(
ST
able
Options
*
,
const
char
*
name
,
const
STSchema
*
pSchema
);
void
metaSuperTableOptsInit
(
ST
able
Options
*
,
const
char
*
name
,
tb_uid_t
uid
,
const
STSchema
*
pSchema
,
void
metaNormalTableOptsInit
(
ST
b
Options
*
,
const
char
*
name
,
const
STSchema
*
pSchema
);
void
metaSuperTableOptsInit
(
ST
b
Options
*
,
const
char
*
name
,
tb_uid_t
uid
,
const
STSchema
*
pSchema
,
const
STSchema
*
pTagSchema
);
void
metaChildTableOptsInit
(
ST
able
Options
*
,
const
char
*
name
,
tb_uid_t
suid
,
const
SKVRow
tags
);
void
metaTableOptsClear
(
ST
able
Options
*
);
void
metaChildTableOptsInit
(
ST
b
Options
*
,
const
char
*
name
,
tb_uid_t
suid
,
const
SKVRow
tags
);
void
metaTableOptsClear
(
ST
b
Options
*
);
#ifdef __cplusplus
}
...
...
source/dnode/vnode/meta/src/metaDB.c
浏览文件 @
552051da
...
...
@@ -27,6 +27,7 @@ int metaOpenDB(SMeta *pMeta) {
if
(
pMeta
->
pCache
)
{
rocksdb_options_set_row_cache
(
options
,
pMeta
->
pCache
);
}
rocksdb_options_set_create_if_missing
(
options
,
1
);
pMeta
->
pDB
=
rocksdb_open
(
options
,
dbDir
,
&
err
);
if
(
pMeta
->
pDB
==
NULL
)
{
...
...
source/dnode/vnode/meta/src/metaIdx.c
浏览文件 @
552051da
...
...
@@ -27,6 +27,7 @@ int metaOpenIdx(SMeta *pMeta) {
if
(
pMeta
->
pCache
)
{
rocksdb_options_set_row_cache
(
options
,
pMeta
->
pCache
);
}
rocksdb_options_set_create_if_missing
(
options
,
1
);
pMeta
->
pIdx
=
rocksdb_open
(
options
,
idxDir
,
&
err
);
if
(
pMeta
->
pIdx
==
NULL
)
{
...
...
source/dnode/vnode/meta/src/metaTable.c
浏览文件 @
552051da
...
...
@@ -15,7 +15,7 @@
#include "meta.h"
int
metaCreateTable
(
SMeta
*
pMeta
,
const
ST
able
Options
*
pTbOptions
)
{
int
metaCreateTable
(
SMeta
*
pMeta
,
const
ST
b
Options
*
pTbOptions
)
{
// TODO
return
0
;
}
...
...
source/dnode/vnode/meta/test/meta
Tests
.cpp
→
source/dnode/vnode/meta/test/meta
APITest
.cpp
浏览文件 @
552051da
#if 0
#include <gtest/gtest.h>
#include <string.h>
#include <iostream>
#include "meta.h"
#if 0
static STSchema *metaGetSimpleSchema() {
STSchema * pSchema = NULL;
STSchemaBuilder sb = {0};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录