Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
adminstrot
TDengine
提交
31029ee2
TDengine
项目概览
adminstrot
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
31029ee2
编写于
5月 07, 2020
作者:
H
hjxilinx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[td-183]
上级
cdb23321
变更
252
展开全部
隐藏空白更改
内联
并排
Showing
252 changed file
with
1735 addition
and
1750 deletion
+1735
-1750
packaging/cfg/taos.cfg
packaging/cfg/taos.cfg
+20
-50
src/client/src/tscSQLParser.c
src/client/src/tscSQLParser.c
+11
-11
src/client/src/tscServer.c
src/client/src/tscServer.c
+3
-3
src/client/src/tscSystem.c
src/client/src/tscSystem.c
+1
-1
src/common/inc/tglobal.h
src/common/inc/tglobal.h
+4
-7
src/common/src/tglobal.c
src/common/src/tglobal.c
+19
-30
src/dnode/src/dnodeWrite.c
src/dnode/src/dnodeWrite.c
+1
-1
src/inc/taosdef.h
src/inc/taosdef.h
+3
-3
src/inc/taosmsg.h
src/inc/taosmsg.h
+4
-4
src/inc/ttokendef.h
src/inc/ttokendef.h
+120
-119
src/inc/twal.h
src/inc/twal.h
+1
-1
src/kit/shell/src/shellEngine.c
src/kit/shell/src/shellEngine.c
+2
-4
src/mnode/inc/mgmtDef.h
src/mnode/inc/mgmtDef.h
+1
-1
src/mnode/src/mgmtDb.c
src/mnode/src/mgmtDb.c
+25
-18
src/mnode/src/mgmtSdb.c
src/mnode/src/mgmtSdb.c
+1
-1
src/mnode/src/mgmtVgroup.c
src/mnode/src/mgmtVgroup.c
+1
-1
src/query/inc/qsqlparser.h
src/query/inc/qsqlparser.h
+5
-5
src/query/inc/sql.y
src/query/inc/sql.y
+15
-12
src/query/src/qparserImpl.c
src/query/src/qparserImpl.c
+5
-5
src/query/src/qtokenizer.c
src/query/src/qtokenizer.c
+5
-4
src/query/src/sql.c
src/query/src/sql.c
+1110
-1092
src/vnode/src/vnodeMain.c
src/vnode/src/vnodeMain.c
+6
-6
src/wal/src/walMain.c
src/wal/src/walMain.c
+1
-1
src/wal/test/waltest.c
src/wal/test/waltest.c
+1
-1
tests/examples/c/demo.c
tests/examples/c/demo.c
+3
-2
tests/pytest/insert/date.py
tests/pytest/insert/date.py
+1
-1
tests/pytest/table/column_name.py
tests/pytest/table/column_name.py
+1
-1
tests/pytest/table/column_num.py
tests/pytest/table/column_num.py
+1
-1
tests/script/general/agg/fill.sim
tests/script/general/agg/fill.sim
+1
-1
tests/script/general/alter/metrics.sim
tests/script/general/alter/metrics.sim
+1
-1
tests/script/general/alter/table.sim
tests/script/general/alter/table.sim
+1
-1
tests/script/general/cache/cache_balance.sim
tests/script/general/cache/cache_balance.sim
+2
-2
tests/script/general/cache/new_metrics.sim
tests/script/general/cache/new_metrics.sim
+1
-1
tests/script/general/cache/new_stream.sim
tests/script/general/cache/new_stream.sim
+1
-1
tests/script/general/cache/restart_metrics.sim
tests/script/general/cache/restart_metrics.sim
+2
-2
tests/script/general/cache/restart_stream.sim
tests/script/general/cache/restart_stream.sim
+2
-2
tests/script/general/cache/restart_table.sim
tests/script/general/cache/restart_table.sim
+2
-2
tests/script/general/column/commit.sim
tests/script/general/column/commit.sim
+1
-1
tests/script/general/column/metrics.sim
tests/script/general/column/metrics.sim
+1
-1
tests/script/general/column/table.sim
tests/script/general/column/table.sim
+1
-1
tests/script/general/compress/commitlog.sim
tests/script/general/compress/commitlog.sim
+1
-1
tests/script/general/compress/compress.sim
tests/script/general/compress/compress.sim
+1
-1
tests/script/general/compress/compress2.sim
tests/script/general/compress/compress2.sim
+1
-1
tests/script/general/compress/uncompress.sim
tests/script/general/compress/uncompress.sim
+1
-1
tests/script/general/compute/avg.sim
tests/script/general/compute/avg.sim
+1
-1
tests/script/general/compute/bottom.sim
tests/script/general/compute/bottom.sim
+1
-1
tests/script/general/compute/count.sim
tests/script/general/compute/count.sim
+1
-1
tests/script/general/compute/diff.sim
tests/script/general/compute/diff.sim
+1
-1
tests/script/general/compute/diff2.sim
tests/script/general/compute/diff2.sim
+1
-1
tests/script/general/compute/first.sim
tests/script/general/compute/first.sim
+1
-1
tests/script/general/compute/interval.sim
tests/script/general/compute/interval.sim
+1
-1
tests/script/general/compute/last.sim
tests/script/general/compute/last.sim
+1
-1
tests/script/general/compute/leastsquare.sim
tests/script/general/compute/leastsquare.sim
+1
-1
tests/script/general/compute/max.sim
tests/script/general/compute/max.sim
+1
-1
tests/script/general/compute/min.sim
tests/script/general/compute/min.sim
+1
-1
tests/script/general/compute/null.sim
tests/script/general/compute/null.sim
+1
-1
tests/script/general/compute/percentile.sim
tests/script/general/compute/percentile.sim
+1
-1
tests/script/general/compute/stddev.sim
tests/script/general/compute/stddev.sim
+1
-1
tests/script/general/compute/sum.sim
tests/script/general/compute/sum.sim
+1
-1
tests/script/general/compute/top.sim
tests/script/general/compute/top.sim
+1
-1
tests/script/general/db/backup/keep.sim
tests/script/general/db/backup/keep.sim
+3
-3
tests/script/general/db/delete_reuse1.sim
tests/script/general/db/delete_reuse1.sim
+4
-4
tests/script/general/db/delete_reuse2.sim
tests/script/general/db/delete_reuse2.sim
+4
-4
tests/script/general/db/delete_writing1.sim
tests/script/general/db/delete_writing1.sim
+4
-4
tests/script/general/db/len.sim
tests/script/general/db/len.sim
+1
-1
tests/script/general/db/tables.sim
tests/script/general/db/tables.sim
+1
-1
tests/script/general/field/2.sim
tests/script/general/field/2.sim
+1
-1
tests/script/general/field/3.sim
tests/script/general/field/3.sim
+1
-1
tests/script/general/field/4.sim
tests/script/general/field/4.sim
+1
-1
tests/script/general/field/5.sim
tests/script/general/field/5.sim
+1
-1
tests/script/general/field/6.sim
tests/script/general/field/6.sim
+1
-1
tests/script/general/field/bigint.sim
tests/script/general/field/bigint.sim
+1
-1
tests/script/general/field/binary.sim
tests/script/general/field/binary.sim
+1
-1
tests/script/general/field/bool.sim
tests/script/general/field/bool.sim
+1
-1
tests/script/general/field/double.sim
tests/script/general/field/double.sim
+1
-1
tests/script/general/field/float.sim
tests/script/general/field/float.sim
+1
-1
tests/script/general/field/int.sim
tests/script/general/field/int.sim
+1
-1
tests/script/general/field/single.sim
tests/script/general/field/single.sim
+1
-1
tests/script/general/field/smallint.sim
tests/script/general/field/smallint.sim
+1
-1
tests/script/general/field/tinyint.sim
tests/script/general/field/tinyint.sim
+1
-1
tests/script/general/http/grafana.sim
tests/script/general/http/grafana.sim
+1
-1
tests/script/general/http/grafana_bug.sim
tests/script/general/http/grafana_bug.sim
+1
-1
tests/script/general/http/prepare.sim
tests/script/general/http/prepare.sim
+1
-1
tests/script/general/http/restful_insert.sim
tests/script/general/http/restful_insert.sim
+1
-1
tests/script/general/http/restful_limit.sim
tests/script/general/http/restful_limit.sim
+1
-1
tests/script/general/http/telegraf.sim
tests/script/general/http/telegraf.sim
+1
-1
tests/script/general/insert/basic.sim
tests/script/general/insert/basic.sim
+1
-1
tests/script/general/insert/insert_drop.sim
tests/script/general/insert/insert_drop.sim
+1
-1
tests/script/general/insert/query_block1_file.sim
tests/script/general/insert/query_block1_file.sim
+1
-1
tests/script/general/insert/query_block1_memory.sim
tests/script/general/insert/query_block1_memory.sim
+1
-1
tests/script/general/insert/query_block2_file.sim
tests/script/general/insert/query_block2_file.sim
+1
-1
tests/script/general/insert/query_block2_memory.sim
tests/script/general/insert/query_block2_memory.sim
+1
-1
tests/script/general/insert/query_file_memory.sim
tests/script/general/insert/query_file_memory.sim
+1
-1
tests/script/general/insert/query_multi_file.sim
tests/script/general/insert/query_multi_file.sim
+1
-1
tests/script/general/insert/tcp.sim
tests/script/general/insert/tcp.sim
+1
-1
tests/script/general/metrics/disk.sim
tests/script/general/metrics/disk.sim
+1
-1
tests/script/general/metrics/metrics.sim
tests/script/general/metrics/metrics.sim
+1
-1
tests/script/general/metrics/values.sim
tests/script/general/metrics/values.sim
+1
-1
tests/script/general/metrics/vnode3.sim
tests/script/general/metrics/vnode3.sim
+1
-1
tests/script/general/parser/alter.sim
tests/script/general/parser/alter.sim
+1
-1
tests/script/general/parser/alter1.sim
tests/script/general/parser/alter1.sim
+1
-1
tests/script/general/parser/alter_stable.sim
tests/script/general/parser/alter_stable.sim
+1
-1
tests/script/general/parser/auto_create_tb.sim
tests/script/general/parser/auto_create_tb.sim
+1
-1
tests/script/general/parser/auto_create_tb_drop_tb.sim
tests/script/general/parser/auto_create_tb_drop_tb.sim
+1
-1
tests/script/general/parser/binary_escapeCharacter.sim
tests/script/general/parser/binary_escapeCharacter.sim
+1
-1
tests/script/general/parser/bug.sim
tests/script/general/parser/bug.sim
+1
-1
tests/script/general/parser/col_arithmetic_operation.sim
tests/script/general/parser/col_arithmetic_operation.sim
+1
-1
tests/script/general/parser/columnValue.sim
tests/script/general/parser/columnValue.sim
+1
-1
tests/script/general/parser/columnValue_bool.sim
tests/script/general/parser/columnValue_bool.sim
+52
-52
tests/script/general/parser/commit.sim
tests/script/general/parser/commit.sim
+1
-1
tests/script/general/parser/create_db.sim
tests/script/general/parser/create_db.sim
+1
-1
tests/script/general/parser/create_mt.sim
tests/script/general/parser/create_mt.sim
+1
-1
tests/script/general/parser/create_tb.sim
tests/script/general/parser/create_tb.sim
+1
-1
tests/script/general/parser/dbtbnameValidate.sim
tests/script/general/parser/dbtbnameValidate.sim
+1
-1
tests/script/general/parser/fill.sim
tests/script/general/parser/fill.sim
+1
-1
tests/script/general/parser/fill_stb.sim
tests/script/general/parser/fill_stb.sim
+1
-1
tests/script/general/parser/first_last.sim
tests/script/general/parser/first_last.sim
+1
-1
tests/script/general/parser/groupby.sim
tests/script/general/parser/groupby.sim
+1
-1
tests/script/general/parser/import.sim
tests/script/general/parser/import.sim
+1
-1
tests/script/general/parser/import_commit1.sim
tests/script/general/parser/import_commit1.sim
+1
-1
tests/script/general/parser/import_commit2.sim
tests/script/general/parser/import_commit2.sim
+1
-1
tests/script/general/parser/import_commit3.sim
tests/script/general/parser/import_commit3.sim
+1
-1
tests/script/general/parser/import_file.sim
tests/script/general/parser/import_file.sim
+1
-1
tests/script/general/parser/insert_multiTbl.sim
tests/script/general/parser/insert_multiTbl.sim
+1
-1
tests/script/general/parser/insert_tb.sim
tests/script/general/parser/insert_tb.sim
+1
-1
tests/script/general/parser/interp.sim
tests/script/general/parser/interp.sim
+1
-1
tests/script/general/parser/join.sim
tests/script/general/parser/join.sim
+1
-1
tests/script/general/parser/join_multivnode.sim
tests/script/general/parser/join_multivnode.sim
+1
-1
tests/script/general/parser/lastrow.sim
tests/script/general/parser/lastrow.sim
+1
-1
tests/script/general/parser/limit.sim
tests/script/general/parser/limit.sim
+1
-1
tests/script/general/parser/limit1.sim
tests/script/general/parser/limit1.sim
+1
-1
tests/script/general/parser/limit1_tblocks100.sim
tests/script/general/parser/limit1_tblocks100.sim
+1
-1
tests/script/general/parser/limit2.sim
tests/script/general/parser/limit2.sim
+1
-1
tests/script/general/parser/limit2_tblocks100.sim
tests/script/general/parser/limit2_tblocks100.sim
+1
-1
tests/script/general/parser/mixed_blocks.sim
tests/script/general/parser/mixed_blocks.sim
+1
-1
tests/script/general/parser/nchar.sim
tests/script/general/parser/nchar.sim
+1
-1
tests/script/general/parser/null_char.sim
tests/script/general/parser/null_char.sim
+1
-1
tests/script/general/parser/projection_limit_offset.sim
tests/script/general/parser/projection_limit_offset.sim
+1
-1
tests/script/general/parser/selectResNum.sim
tests/script/general/parser/selectResNum.sim
+1
-1
tests/script/general/parser/select_across_vnodes.sim
tests/script/general/parser/select_across_vnodes.sim
+1
-1
tests/script/general/parser/select_from_cache_disk.sim
tests/script/general/parser/select_from_cache_disk.sim
+1
-1
tests/script/general/parser/select_with_tags.sim
tests/script/general/parser/select_with_tags.sim
+1
-1
tests/script/general/parser/set_tag_vals.sim
tests/script/general/parser/set_tag_vals.sim
+1
-1
tests/script/general/parser/single_row_in_tb.sim
tests/script/general/parser/single_row_in_tb.sim
+1
-1
tests/script/general/parser/slimit.sim
tests/script/general/parser/slimit.sim
+1
-1
tests/script/general/parser/slimit1.sim
tests/script/general/parser/slimit1.sim
+1
-1
tests/script/general/parser/slimit_alter_tags.sim
tests/script/general/parser/slimit_alter_tags.sim
+1
-1
tests/script/general/parser/stream.sim
tests/script/general/parser/stream.sim
+1
-1
tests/script/general/parser/stream_on_sys.sim
tests/script/general/parser/stream_on_sys.sim
+1
-1
tests/script/general/parser/tags_dynamically_specifiy.sim
tests/script/general/parser/tags_dynamically_specifiy.sim
+1
-1
tests/script/general/parser/tags_filter.sim
tests/script/general/parser/tags_filter.sim
+1
-1
tests/script/general/parser/tbnameIn.sim
tests/script/general/parser/tbnameIn.sim
+1
-1
tests/script/general/parser/testSuite.sim
tests/script/general/parser/testSuite.sim
+9
-9
tests/script/general/parser/timestamp.sim
tests/script/general/parser/timestamp.sim
+1
-1
tests/script/general/parser/where.sim
tests/script/general/parser/where.sim
+1
-1
tests/script/general/stream/metrics_1.sim
tests/script/general/stream/metrics_1.sim
+1
-1
tests/script/general/stream/metrics_del.sim
tests/script/general/stream/metrics_del.sim
+1
-1
tests/script/general/stream/metrics_n.sim
tests/script/general/stream/metrics_n.sim
+1
-1
tests/script/general/stream/metrics_replica1_vnoden.sim
tests/script/general/stream/metrics_replica1_vnoden.sim
+1
-1
tests/script/general/stream/stream_1.sim
tests/script/general/stream/stream_1.sim
+1
-1
tests/script/general/stream/stream_2.sim
tests/script/general/stream/stream_2.sim
+1
-1
tests/script/general/stream/stream_3.sim
tests/script/general/stream/stream_3.sim
+2
-2
tests/script/general/stream/stream_restart.sim
tests/script/general/stream/stream_restart.sim
+1
-1
tests/script/general/stream/table_1.sim
tests/script/general/stream/table_1.sim
+1
-1
tests/script/general/stream/table_del.sim
tests/script/general/stream/table_del.sim
+1
-1
tests/script/general/stream/table_n.sim
tests/script/general/stream/table_n.sim
+1
-1
tests/script/general/stream/table_replica1_vnoden.sim
tests/script/general/stream/table_replica1_vnoden.sim
+1
-1
tests/script/general/table/bigint.sim
tests/script/general/table/bigint.sim
+1
-1
tests/script/general/table/binary.sim
tests/script/general/table/binary.sim
+1
-1
tests/script/general/table/bool.sim
tests/script/general/table/bool.sim
+1
-1
tests/script/general/table/column2.sim
tests/script/general/table/column2.sim
+1
-1
tests/script/general/table/column_name.sim
tests/script/general/table/column_name.sim
+1
-1
tests/script/general/table/column_num.sim
tests/script/general/table/column_num.sim
+1
-1
tests/script/general/table/column_value.sim
tests/script/general/table/column_value.sim
+1
-1
tests/script/general/table/date.sim
tests/script/general/table/date.sim
+1
-1
tests/script/general/table/db.table.sim
tests/script/general/table/db.table.sim
+1
-1
tests/script/general/table/delete_reuse1.sim
tests/script/general/table/delete_reuse1.sim
+4
-4
tests/script/general/table/delete_reuse2.sim
tests/script/general/table/delete_reuse2.sim
+4
-4
tests/script/general/table/delete_writing.sim
tests/script/general/table/delete_writing.sim
+4
-4
tests/script/general/table/describe.sim
tests/script/general/table/describe.sim
+1
-1
tests/script/general/table/double.sim
tests/script/general/table/double.sim
+1
-1
tests/script/general/table/float.sim
tests/script/general/table/float.sim
+1
-1
tests/script/general/table/int.sim
tests/script/general/table/int.sim
+1
-1
tests/script/general/table/limit.sim
tests/script/general/table/limit.sim
+1
-1
tests/script/general/table/smallint.sim
tests/script/general/table/smallint.sim
+1
-1
tests/script/general/table/table.sim
tests/script/general/table/table.sim
+1
-1
tests/script/general/table/table_len.sim
tests/script/general/table/table_len.sim
+1
-1
tests/script/general/table/tinyint.sim
tests/script/general/table/tinyint.sim
+1
-1
tests/script/general/table/vgroup.sim
tests/script/general/table/vgroup.sim
+1
-1
tests/script/general/tag/3.sim
tests/script/general/tag/3.sim
+1
-1
tests/script/general/tag/4.sim
tests/script/general/tag/4.sim
+1
-1
tests/script/general/tag/5.sim
tests/script/general/tag/5.sim
+1
-1
tests/script/general/tag/6.sim
tests/script/general/tag/6.sim
+1
-1
tests/script/general/tag/add.sim
tests/script/general/tag/add.sim
+1
-1
tests/script/general/tag/bigint.sim
tests/script/general/tag/bigint.sim
+1
-1
tests/script/general/tag/binary.sim
tests/script/general/tag/binary.sim
+1
-1
tests/script/general/tag/binary_binary.sim
tests/script/general/tag/binary_binary.sim
+1
-1
tests/script/general/tag/bool.sim
tests/script/general/tag/bool.sim
+1
-1
tests/script/general/tag/bool_binary.sim
tests/script/general/tag/bool_binary.sim
+1
-1
tests/script/general/tag/bool_int.sim
tests/script/general/tag/bool_int.sim
+1
-1
tests/script/general/tag/change.sim
tests/script/general/tag/change.sim
+1
-1
tests/script/general/tag/column.sim
tests/script/general/tag/column.sim
+1
-1
tests/script/general/tag/commit.sim
tests/script/general/tag/commit.sim
+1
-1
tests/script/general/tag/create.sim
tests/script/general/tag/create.sim
+1
-1
tests/script/general/tag/delete.sim
tests/script/general/tag/delete.sim
+1
-1
tests/script/general/tag/double.sim
tests/script/general/tag/double.sim
+1
-1
tests/script/general/tag/float.sim
tests/script/general/tag/float.sim
+1
-1
tests/script/general/tag/int.sim
tests/script/general/tag/int.sim
+1
-1
tests/script/general/tag/int_binary.sim
tests/script/general/tag/int_binary.sim
+1
-1
tests/script/general/tag/int_float.sim
tests/script/general/tag/int_float.sim
+1
-1
tests/script/general/tag/set.sim
tests/script/general/tag/set.sim
+1
-1
tests/script/general/tag/smallint.sim
tests/script/general/tag/smallint.sim
+1
-1
tests/script/general/tag/tinyint.sim
tests/script/general/tag/tinyint.sim
+1
-1
tests/script/general/vector/metrics_field.sim
tests/script/general/vector/metrics_field.sim
+1
-1
tests/script/general/vector/metrics_mix.sim
tests/script/general/vector/metrics_mix.sim
+1
-1
tests/script/general/vector/metrics_query.sim
tests/script/general/vector/metrics_query.sim
+1
-1
tests/script/general/vector/metrics_tag.sim
tests/script/general/vector/metrics_tag.sim
+1
-1
tests/script/general/vector/metrics_time.sim
tests/script/general/vector/metrics_time.sim
+1
-1
tests/script/general/vector/multi.sim
tests/script/general/vector/multi.sim
+1
-1
tests/script/general/vector/single.sim
tests/script/general/vector/single.sim
+1
-1
tests/script/general/vector/table_field.sim
tests/script/general/vector/table_field.sim
+1
-1
tests/script/general/vector/table_mix.sim
tests/script/general/vector/table_mix.sim
+1
-1
tests/script/general/vector/table_query.sim
tests/script/general/vector/table_query.sim
+1
-1
tests/script/general/vector/table_time.sim
tests/script/general/vector/table_time.sim
+1
-1
tests/script/tmp/prepare.sim
tests/script/tmp/prepare.sim
+4
-4
tests/script/unique/big/tcp.sim
tests/script/unique/big/tcp.sim
+1
-1
tests/script/unique/db/commit.sim
tests/script/unique/db/commit.sim
+3
-3
tests/script/unique/metrics/balance_replica1.sim
tests/script/unique/metrics/balance_replica1.sim
+2
-2
tests/script/unique/metrics/dnode2.sim
tests/script/unique/metrics/dnode2.sim
+2
-2
tests/script/unique/metrics/dnode2_stop.sim
tests/script/unique/metrics/dnode2_stop.sim
+2
-2
tests/script/unique/metrics/dnode3.sim
tests/script/unique/metrics/dnode3.sim
+3
-3
tests/script/unique/metrics/replica2_dnode4.sim
tests/script/unique/metrics/replica2_dnode4.sim
+4
-4
tests/script/unique/metrics/replica2_vnode3.sim
tests/script/unique/metrics/replica2_vnode3.sim
+2
-2
tests/script/unique/metrics/replica3_dnode6.sim
tests/script/unique/metrics/replica3_dnode6.sim
+6
-6
tests/script/unique/metrics/replica3_vnode3.sim
tests/script/unique/metrics/replica3_vnode3.sim
+4
-4
tests/script/unique/stream/metrics_balance.sim
tests/script/unique/stream/metrics_balance.sim
+2
-2
tests/script/unique/stream/metrics_replica1_dnode2.sim
tests/script/unique/stream/metrics_replica1_dnode2.sim
+2
-2
tests/script/unique/stream/metrics_replica2_dnode2.sim
tests/script/unique/stream/metrics_replica2_dnode2.sim
+2
-2
tests/script/unique/stream/metrics_replica2_dnode2_vnoden.sim
...s/script/unique/stream/metrics_replica2_dnode2_vnoden.sim
+2
-2
tests/script/unique/stream/metrics_replica2_dnode3.sim
tests/script/unique/stream/metrics_replica2_dnode3.sim
+3
-3
tests/script/unique/stream/metrics_replica3_dnode4.sim
tests/script/unique/stream/metrics_replica3_dnode4.sim
+4
-4
tests/script/unique/stream/metrics_vnode_stop.sim
tests/script/unique/stream/metrics_vnode_stop.sim
+4
-4
tests/script/unique/stream/table_balance.sim
tests/script/unique/stream/table_balance.sim
+2
-2
tests/script/unique/stream/table_replica1_dnode2.sim
tests/script/unique/stream/table_replica1_dnode2.sim
+2
-2
tests/script/unique/stream/table_replica2_dnode2.sim
tests/script/unique/stream/table_replica2_dnode2.sim
+2
-2
tests/script/unique/stream/table_replica2_dnode2_vnoden.sim
tests/script/unique/stream/table_replica2_dnode2_vnoden.sim
+2
-2
tests/script/unique/stream/table_replica2_dnode3.sim
tests/script/unique/stream/table_replica2_dnode3.sim
+3
-3
tests/script/unique/stream/table_replica3_dnode4.sim
tests/script/unique/stream/table_replica3_dnode4.sim
+4
-4
tests/script/unique/stream/table_vnode_stop.sim
tests/script/unique/stream/table_vnode_stop.sim
+4
-4
tests/script/unique/table/delete_part.sim
tests/script/unique/table/delete_part.sim
+4
-4
tests/script/unique/vnode/backup/replica4.sim
tests/script/unique/vnode/backup/replica4.sim
+4
-4
tests/script/unique/vnode/backup/replica5.sim
tests/script/unique/vnode/backup/replica5.sim
+5
-5
未找到文件。
packaging/cfg/taos.cfg
浏览文件 @
31029ee2
...
...
@@ -5,29 +5,16 @@
# #
########################################################
#
master IP
for TDengine system
#
masterIp
127.0.0.1
#
first full-qualified domain name (FQDN)
for TDengine system
#
first
127.0.0.1
# second IP for TDengine system, for cluster version only
# secondIp 127.0.0.1
# IP address of the server
# privateIp 127.0.0.1
# public IP of server, on which the tdengine are deployed
# this IP is assigned by cloud service provider, for cluster version only
# publicIp 127.0.0.1
# network is bound to 0.0.0.0
# anyIp 1
# second full-qualified domain name (FQDN) for TDengine system, for cluster edition only
# second 127.0.0.1
# set socket type ("udp" and "tcp")
# the server and client should have the same socket type. Otherwise, connect will fail
# sockettype udp
# client local IP
# localIp 127.0.0.1
# for the cluster version, data file's directory is configured this way
# option mount_path tier_level
# dataDir /mnt/disk1/taos 0
...
...
@@ -46,23 +33,8 @@
# http service port, default tcp[6020]
# httpPort 6020
# port for MNode connect to Client, default udp[6030-6034] tcp[6030]
# mgmtShellPort 6030
# port for DNode connect to Client, default udp[6035-6039] tcp[6035]
# vnodeShellPort 6035
# port for MNode connect to VNode, default udp[6040-6044] tcp[6040], for cluster version only
# mgmtVnodePort 6040
# port for DNode connect to DNode, default tcp[6045], for cluster version only
# vnodeVnodePort 6045
# port for MNode connect to MNode, default udp[6050], for cluster version only
# mgmtMgmtPort 6050
# port sync file MNode and MNode, default tcp[6050], for cluster version only
# mgmtSyncPort 6050
# port for MNode connect to Client, default udp[6030-6055] tcp[6030]
# serverPort 6030
# number of threads per CPU core
# numOfThreadsPerCore 1
...
...
@@ -73,20 +45,18 @@
# number of total vnodes in DNode
# numOfTotalVnodes 0
# max number of
session
s per vnode
#
tables 1024
# max number of
table
s per vnode
#
maxtablesPerVnode 1000
# cache block size
# cache 16384
# row in file block
# rows 4096
# row of records in file block
# minRows 100
# maxRows 4096
# average cache blocks per meter
# ablocks 4
# max number of cache blocks per Meter
# tblocks 512
# number of cache blocks per vnode
# blocks 2
# interval of system monitor
# monitorInterval 60
...
...
@@ -118,11 +88,8 @@
# interval of MNode send HB to MNode, unit is Second, for cluster version only
# mgmtPeerHBTimer 1
# time to keep MeterMeta in Cache, seconds
# meterMetaKeepTimer 7200
# time to keep MetricMeta in Cache, seconds
# metricMetaKeepTimer 600
# duration of to keep tableMeta kept in Cache, seconds
# tableMetaKeepTimer 7200
# max number of users
# maxUsers 1000
...
...
@@ -148,8 +115,8 @@
# system time zone
# timezone Asia/Shanghai (CST, +0800)
#
enable/disable commit log
#
clog
1
#
set write ahead log (WAL) level
#
walLevel
1
# enable/disable async log
# asyncLog 1
...
...
@@ -268,6 +235,9 @@
# debug flag for TDengine client
# cDebugFlag 131
# debug flag for query
# qDebugflag 131
# debug flag for http server
# httpDebugFlag 131
...
...
src/client/src/tscSQLParser.c
浏览文件 @
31029ee2
...
...
@@ -4743,7 +4743,7 @@ static int32_t setKeepOption(SSqlCmd* pCmd, SCMCreateDbMsg* pMsg, SCreateDBInfo*
return
TSDB_CODE_SUCCESS
;
}
static
int32_t
setTimePrecision
Option
(
SSqlCmd
*
pCmd
,
SCMCreateDbMsg
*
pMsg
,
SCreateDBInfo
*
pCreateDbInfo
)
{
static
int32_t
setTimePrecision
(
SSqlCmd
*
pCmd
,
SCMCreateDbMsg
*
pMsg
,
SCreateDBInfo
*
pCreateDbInfo
)
{
const
char
*
msg
=
"invalid time precision"
;
pMsg
->
precision
=
TSDB_TIME_PRECISION_MILLI
;
// millisecond by default
...
...
@@ -4768,15 +4768,15 @@ static int32_t setTimePrecisionOption(SSqlCmd* pCmd, SCMCreateDbMsg* pMsg, SCrea
}
static
void
setCreateDBOption
(
SCMCreateDbMsg
*
pMsg
,
SCreateDBInfo
*
pCreateDb
)
{
pMsg
->
max
Sessions
=
htonl
(
pCreateDb
->
t
ablesPerVnode
);
pMsg
->
cacheBlockSize
=
htonl
(
-
1
);
pMsg
->
totalBlocks
=
htonl
(
-
1
);
pMsg
->
max
Tables
=
htonl
(
pCreateDb
->
maxT
ablesPerVnode
);
pMsg
->
cacheBlockSize
=
htonl
(
pCreateDb
->
cacheBlockSize
);
pMsg
->
numOfBlocks
=
htonl
(
pCreateDb
->
numOfBlocks
);
pMsg
->
daysPerFile
=
htonl
(
pCreateDb
->
daysPerFile
);
pMsg
->
commitTime
=
htonl
(
pCreateDb
->
commitTime
);
pMsg
->
minRowsPerFileBlock
=
htonl
(
-
1
);
pMsg
->
maxRowsPerFileBlock
=
htonl
(
-
1
);
pMsg
->
minRowsPerFileBlock
=
htonl
(
pCreateDb
->
minRowsPerBlock
);
pMsg
->
maxRowsPerFileBlock
=
htonl
(
pCreateDb
->
maxRowsPerBlock
);
pMsg
->
compression
=
pCreateDb
->
compressionLevel
;
pMsg
->
commitLog
=
(
char
)
pCreateDb
->
commitLog
;
pMsg
->
walLevel
=
(
char
)
pCreateDb
->
walLevel
;
pMsg
->
replications
=
pCreateDb
->
replica
;
pMsg
->
ignoreExist
=
pCreateDb
->
ignoreExists
;
}
...
...
@@ -4789,7 +4789,7 @@ int32_t parseCreateDBOptions(SSqlCmd* pCmd, SCreateDBInfo* pCreateDbSql) {
return
TSDB_CODE_INVALID_SQL
;
}
if
(
setTimePrecision
Option
(
pCmd
,
pMsg
,
pCreateDbSql
)
!=
TSDB_CODE_SUCCESS
)
{
if
(
setTimePrecision
(
pCmd
,
pMsg
,
pCreateDbSql
)
!=
TSDB_CODE_SUCCESS
)
{
return
TSDB_CODE_INVALID_SQL
;
}
...
...
@@ -5309,8 +5309,8 @@ int32_t doLocalQueryProcess(SQueryInfo* pQueryInfo, SQuerySQL* pQuerySql) {
int32_t
tscCheckCreateDbParams
(
SSqlCmd
*
pCmd
,
SCMCreateDbMsg
*
pCreate
)
{
char
msg
[
512
]
=
{
0
};
if
(
pCreate
->
commitLog
!=
-
1
&&
(
pCreate
->
commitLog
<
TSDB_MIN_CLOG_LEVEL
||
pCreate
->
commitLog
>
TSDB_MAX_CLOG
_LEVEL
))
{
snprintf
(
msg
,
tListLen
(
msg
),
"invalid db option
commitLog: %d, only 0-2 allowed"
,
pCreate
->
commitLog
);
if
(
pCreate
->
walLevel
!=
-
1
&&
(
pCreate
->
walLevel
<
TSDB_MIN_WAL_LEVEL
||
pCreate
->
walLevel
>
TSDB_MAX_WAL
_LEVEL
))
{
snprintf
(
msg
,
tListLen
(
msg
),
"invalid db option
walLevel: %d, only 0-2 allowed"
,
pCreate
->
walLevel
);
return
invalidSqlErrMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg
);
}
...
...
@@ -5335,7 +5335,7 @@ int32_t tscCheckCreateDbParams(SSqlCmd* pCmd, SCMCreateDbMsg* pCreate) {
return
invalidSqlErrMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg
);
}
val
=
htonl
(
pCreate
->
max
Session
s
);
val
=
htonl
(
pCreate
->
max
Table
s
);
if
(
val
!=
-
1
&&
(
val
<
TSDB_MIN_TABLES
||
val
>
TSDB_MAX_TABLES
))
{
snprintf
(
msg
,
tListLen
(
msg
),
"invalid db option maxSessions: %d valid range: [%d, %d]"
,
val
,
TSDB_MIN_TABLES
,
TSDB_MAX_TABLES
);
...
...
src/client/src/tscServer.c
浏览文件 @
31029ee2
...
...
@@ -1907,7 +1907,7 @@ int tscProcessTableMetaRsp(SSqlObj *pSql) {
assert
(
pTableMetaInfo
->
pTableMeta
==
NULL
);
pTableMetaInfo
->
pTableMeta
=
(
STableMeta
*
)
taosCachePut
(
tscCacheHandle
,
pTableMetaInfo
->
name
,
pTableMeta
,
size
,
ts
Meter
MetaKeepTimer
);
(
STableMeta
*
)
taosCachePut
(
tscCacheHandle
,
pTableMetaInfo
->
name
,
pTableMeta
,
size
,
ts
Table
MetaKeepTimer
);
// todo handle out of memory case
if
(
pTableMetaInfo
->
pTableMeta
==
NULL
)
{
...
...
@@ -2016,7 +2016,7 @@ int tscProcessMultiMeterMetaRsp(SSqlObj *pSql) {
// int32_t size = (int32_t)(rsp - ((char *)pMeta)); // Consistent with STableMeta in cache
//
// pMeta->index = 0;
// (void)taosCachePut(tscCacheHandle, pMeta->tableId, (char *)pMeta, size, ts
Meter
MetaKeepTimer);
// (void)taosCachePut(tscCacheHandle, pMeta->tableId, (char *)pMeta, size, ts
Table
MetaKeepTimer);
// }
}
...
...
@@ -2215,7 +2215,7 @@ int tscProcessShowRsp(SSqlObj *pSql) {
size_t
size
=
0
;
STableMeta
*
pTableMeta
=
tscCreateTableMetaFromMsg
(
pMetaMsg
,
&
size
);
pTableMetaInfo
->
pTableMeta
=
taosCachePut
(
tscCacheHandle
,
key
,
(
char
*
)
pTableMeta
,
size
,
ts
Meter
MetaKeepTimer
);
pTableMetaInfo
->
pTableMeta
=
taosCachePut
(
tscCacheHandle
,
key
,
(
char
*
)
pTableMeta
,
size
,
ts
Table
MetaKeepTimer
);
SSchema
*
pTableSchema
=
tscGetTableSchema
(
pTableMetaInfo
->
pTableMeta
);
if
(
pQueryInfo
->
colList
==
NULL
)
{
...
...
src/client/src/tscSystem.c
浏览文件 @
31029ee2
...
...
@@ -165,7 +165,7 @@ void taos_init_imp() {
taosTmrReset
(
tscCheckDiskUsage
,
10
,
NULL
,
tscTmr
,
&
tscCheckDiskUsageTmr
);
}
int64_t
refreshTime
=
ts
MetricMetaKeepTimer
<
tsMeterMetaKeepTimer
?
tsMetricMetaKeepTimer
:
tsMeter
MetaKeepTimer
;
int64_t
refreshTime
=
ts
Table
MetaKeepTimer
;
refreshTime
=
refreshTime
>
2
?
2
:
refreshTime
;
refreshTime
=
refreshTime
<
1
?
1
:
refreshTime
;
...
...
src/common/inc/tglobal.h
浏览文件 @
31029ee2
...
...
@@ -65,8 +65,7 @@ extern int32_t tsStatusInterval;
extern
int32_t
tsShellActivityTimer
;
extern
int32_t
tsVnodePeerHBTimer
;
extern
int32_t
tsMgmtPeerHBTimer
;
extern
int32_t
tsMeterMetaKeepTimer
;
extern
int32_t
tsMetricMetaKeepTimer
;
extern
int32_t
tsTableMetaKeepTimer
;
extern
float
tsNumOfThreadsPerCore
;
extern
float
tsRatioOfQueryThreads
;
...
...
@@ -77,8 +76,8 @@ extern int16_t tsNumOfTotalVnodes;
extern
uint32_t
tsPublicIpInt
;
extern
int32_t
tsCacheBlockSize
;
extern
int32_t
ts
TotalBlocks
;
extern
int32_t
ts
Tables
PerVnode
;
extern
int32_t
ts
BlocksPerVnode
;
extern
int32_t
ts
MaxTable
PerVnode
;
extern
int16_t
tsDaysPerFile
;
extern
int32_t
tsDaysToKeep
;
extern
int32_t
tsMinRowsInFileBlock
;
...
...
@@ -86,7 +85,7 @@ extern int32_t tsMaxRowsInFileBlock;
extern
int16_t
tsCommitTime
;
// seconds
extern
int32_t
tsTimePrecision
;
extern
int16_t
tsCompression
;
extern
int16_t
ts
CommitLog
;
extern
int16_t
ts
WAL
;
extern
int32_t
tsReplications
;
extern
int16_t
tsAffectedRowsMod
;
...
...
@@ -94,7 +93,6 @@ extern int32_t tsNumOfMPeers;
extern
int32_t
tsMaxShellConns
;
extern
int32_t
tsMaxTables
;
extern
char
tsLocalIp
[];
extern
char
tsDefaultDB
[];
extern
char
tsDefaultUser
[];
extern
char
tsDefaultPass
[];
...
...
@@ -136,7 +134,6 @@ extern int32_t tsHttpEnableRecordSql;
extern
int32_t
tsTelegrafUseFieldNum
;
extern
int32_t
tsTscEnableRecordSql
;
extern
int32_t
tsAnyIp
;
extern
char
tsMonitorDbName
[];
extern
char
tsInternalPass
[];
...
...
src/common/src/tglobal.c
浏览文件 @
31029ee2
...
...
@@ -74,8 +74,7 @@ uint16_t tsSyncPort = 6050;
int32_t
tsStatusInterval
=
1
;
// second
int32_t
tsShellActivityTimer
=
3
;
// second
int32_t
tsMeterMetaKeepTimer
=
7200
;
// second
int32_t
tsMetricMetaKeepTimer
=
600
;
// second
int32_t
tsTableMetaKeepTimer
=
7200
;
// second
int32_t
tsRpcTimer
=
300
;
int32_t
tsRpcMaxTime
=
600
;
// seconds;
...
...
@@ -85,22 +84,22 @@ int16_t tsNumOfVnodesPerCore = 8;
int16_t
tsNumOfTotalVnodes
=
TSDB_INVALID_VNODE_NUM
;
#ifdef _TD_ARM_32_
int32_t
ts
Tables
PerVnode
=
100
;
int32_t
ts
MaxTable
PerVnode
=
100
;
#else
int32_t
ts
Tables
PerVnode
=
TSDB_DEFAULT_TABLES
;
int32_t
ts
MaxTable
PerVnode
=
TSDB_DEFAULT_TABLES
;
#endif
int32_t
tsCacheBlockSize
=
TSDB_DEFAULT_CACHE_BLOCK_SIZE
;
int32_t
ts
TotalBlocks
=
TSDB_DEFAULT_TOTAL_BLOCKS
;
int16_t
tsDaysPerFile
=
TSDB_DEFAULT_DAYS_PER_FILE
;
int32_t
tsDaysToKeep
=
TSDB_DEFAULT_KEEP
;
int32_t
ts
BlocksPerVnode
=
TSDB_DEFAULT_TOTAL_BLOCKS
;
int16_t
tsDaysPerFile
=
TSDB_DEFAULT_DAYS_PER_FILE
;
int32_t
tsDaysToKeep
=
TSDB_DEFAULT_KEEP
;
int32_t
tsMinRowsInFileBlock
=
TSDB_DEFAULT_MIN_ROW_FBLOCK
;
int32_t
tsMaxRowsInFileBlock
=
TSDB_DEFAULT_MAX_ROW_FBLOCK
;
int16_t
tsCommitTime
=
TSDB_DEFAULT_COMMIT_TIME
;
// seconds
int16_t
tsCommitTime
=
TSDB_DEFAULT_COMMIT_TIME
;
// seconds
int32_t
tsTimePrecision
=
TSDB_DEFAULT_PRECISION
;
int16_t
tsCompression
=
TSDB_DEFAULT_COMP_LEVEL
;
int16_t
ts
CommitLog
=
TSDB_DEFAULT_CLOG
_LEVEL
;
int32_t
tsReplications
=
TSDB_DEFAULT_REPLICA_NUM
;
int16_t
tsCompression
=
TSDB_DEFAULT_COMP_LEVEL
;
int16_t
ts
WAL
=
TSDB_DEFAULT_WAL
_LEVEL
;
int32_t
tsReplications
=
TSDB_DEFAULT_REPLICA_NUM
;
/**
* Change the meaning of affected rows:
...
...
@@ -506,18 +505,8 @@ static void doInitGlobalConfig() {
cfg
.
unitType
=
TAOS_CFG_UTYPE_SECOND
;
taosInitConfigOption
(
cfg
);
cfg
.
option
=
"meterMetaKeepTimer"
;
cfg
.
ptr
=
&
tsMeterMetaKeepTimer
;
cfg
.
valType
=
TAOS_CFG_VTYPE_INT32
;
cfg
.
cfgType
=
TSDB_CFG_CTYPE_B_CONFIG
|
TSDB_CFG_CTYPE_B_CLIENT
;
cfg
.
minValue
=
1
;
cfg
.
maxValue
=
8640000
;
cfg
.
ptrLength
=
0
;
cfg
.
unitType
=
TAOS_CFG_UTYPE_SECOND
;
taosInitConfigOption
(
cfg
);
cfg
.
option
=
"metricMetaKeepTimer"
;
cfg
.
ptr
=
&
tsMetricMetaKeepTimer
;
cfg
.
option
=
"tableMetaKeepTimer"
;
cfg
.
ptr
=
&
tsTableMetaKeepTimer
;
cfg
.
valType
=
TAOS_CFG_VTYPE_INT32
;
cfg
.
cfgType
=
TSDB_CFG_CTYPE_B_CONFIG
|
TSDB_CFG_CTYPE_B_CLIENT
;
cfg
.
minValue
=
1
;
...
...
@@ -587,8 +576,8 @@ static void doInitGlobalConfig() {
taosInitConfigOption
(
cfg
);
// database configs
cfg
.
option
=
"
tables
"
;
cfg
.
ptr
=
&
ts
Tables
PerVnode
;
cfg
.
option
=
"
maxtablesPerVnode
"
;
cfg
.
ptr
=
&
ts
MaxTable
PerVnode
;
cfg
.
valType
=
TAOS_CFG_VTYPE_INT32
;
cfg
.
cfgType
=
TSDB_CFG_CTYPE_B_CONFIG
|
TSDB_CFG_CTYPE_B_SHOW
;
cfg
.
minValue
=
TSDB_MIN_TABLES
;
...
...
@@ -608,7 +597,7 @@ static void doInitGlobalConfig() {
taosInitConfigOption
(
cfg
);
cfg
.
option
=
"blocks"
;
cfg
.
ptr
=
&
ts
TotalBlocks
;
cfg
.
ptr
=
&
ts
BlocksPerVnode
;
cfg
.
valType
=
TAOS_CFG_VTYPE_INT32
;
cfg
.
cfgType
=
TSDB_CFG_CTYPE_B_CONFIG
|
TSDB_CFG_CTYPE_B_SHOW
;
cfg
.
minValue
=
TSDB_MIN_TOTAL_BLOCKS
;
...
...
@@ -677,12 +666,12 @@ static void doInitGlobalConfig() {
cfg
.
unitType
=
TAOS_CFG_UTYPE_NONE
;
taosInitConfigOption
(
cfg
);
cfg
.
option
=
"
clog
"
;
cfg
.
ptr
=
&
ts
CommitLog
;
cfg
.
option
=
"
wallevel
"
;
cfg
.
ptr
=
&
ts
WAL
;
cfg
.
valType
=
TAOS_CFG_VTYPE_INT16
;
cfg
.
cfgType
=
TSDB_CFG_CTYPE_B_CONFIG
|
TSDB_CFG_CTYPE_B_SHOW
;
cfg
.
minValue
=
TSDB_MIN_
CLOG
_LEVEL
;
cfg
.
maxValue
=
TSDB_MAX_
CLOG
_LEVEL
;
cfg
.
minValue
=
TSDB_MIN_
WAL
_LEVEL
;
cfg
.
maxValue
=
TSDB_MAX_
WAL
_LEVEL
;
cfg
.
ptrLength
=
0
;
cfg
.
unitType
=
TAOS_CFG_UTYPE_NONE
;
taosInitConfigOption
(
cfg
);
...
...
src/dnode/src/dnodeWrite.c
浏览文件 @
31029ee2
...
...
@@ -228,7 +228,7 @@ static void dnodeHandleIdleWorker(SWriteWorker *pWorker) {
int32_t
num
=
taosGetQueueNumber
(
pWorker
->
qset
);
if
(
num
>
0
)
{
usleep
(
30
);
usleep
(
30
000
);
sched_yield
();
}
else
{
taosFreeQall
(
pWorker
->
qall
);
...
...
src/inc/taosdef.h
浏览文件 @
31029ee2
...
...
@@ -279,9 +279,9 @@ void tsDataSwap(void *pLeft, void *pRight, int32_t type, int32_t size);
#define TSDB_MAX_COMP_LEVEL 2
#define TSDB_DEFAULT_COMP_LEVEL 2
#define TSDB_MIN_
CLOG
_LEVEL 0
#define TSDB_MAX_
CLOG
_LEVEL 2
#define TSDB_DEFAULT_
CLOG
_LEVEL 2
#define TSDB_MIN_
WAL
_LEVEL 0
#define TSDB_MAX_
WAL
_LEVEL 2
#define TSDB_DEFAULT_
WAL
_LEVEL 2
#define TSDB_MIN_REPLICA_NUM 1
#define TSDB_MAX_REPLICA_NUM 3
...
...
src/inc/taosmsg.h
浏览文件 @
31029ee2
...
...
@@ -502,9 +502,9 @@ typedef struct {
typedef
struct
{
char
acct
[
TSDB_USER_LEN
+
1
];
char
db
[
TSDB_DB_NAME_LEN
+
1
];
int32_t
max
Session
s
;
int32_t
max
Table
s
;
int32_t
cacheBlockSize
;
//MB
int32_t
total
Blocks
;
int32_t
numOf
Blocks
;
int32_t
daysPerFile
;
int32_t
daysToKeep1
;
int32_t
daysToKeep2
;
...
...
@@ -513,7 +513,7 @@ typedef struct {
int32_t
minRowsPerFileBlock
;
int32_t
maxRowsPerFileBlock
;
int8_t
compression
;
int8_t
commitLog
;
int8_t
walLevel
;
int8_t
replications
;
uint8_t
precision
;
// time resolution
int8_t
ignoreExist
;
...
...
@@ -592,7 +592,7 @@ typedef struct {
int32_t
commitTime
;
int8_t
precision
;
int8_t
compression
;
int8_t
commitLog
;
int8_t
walLevel
;
int8_t
replications
;
int8_t
wals
;
int8_t
quorum
;
...
...
src/inc/ttokendef.h
浏览文件 @
31029ee2
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TDENGINE_T
SQL
DEF_H
#define TDENGINE_T
SQL
DEF_H
#ifndef TDENGINE_T
TOKEN
DEF_H
#define TDENGINE_T
TOKEN
DEF_H
#define TK_ID 1
#define TK_BOOL 2
...
...
@@ -101,123 +101,124 @@
#define TK_CONNS 83
#define TK_STATE 84
#define TK_KEEP 85
#define TK_CACHE 86
#define TK_REPLICA 87
#define TK_DAYS 88
#define TK_ROWS 89
#define TK_ABLOCKS 90
#define TK_TBLOCKS 91
#define TK_CTIME 92
#define TK_CLOG 93
#define TK_COMP 94
#define TK_PRECISION 95
#define TK_LP 96
#define TK_RP 97
#define TK_TAGS 98
#define TK_USING 99
#define TK_AS 100
#define TK_COMMA 101
#define TK_NULL 102
#define TK_SELECT 103
#define TK_UNION 104
#define TK_ALL 105
#define TK_FROM 106
#define TK_VARIABLE 107
#define TK_INTERVAL 108
#define TK_FILL 109
#define TK_SLIDING 110
#define TK_ORDER 111
#define TK_BY 112
#define TK_ASC 113
#define TK_DESC 114
#define TK_GROUP 115
#define TK_HAVING 116
#define TK_LIMIT 117
#define TK_OFFSET 118
#define TK_SLIMIT 119
#define TK_SOFFSET 120
#define TK_WHERE 121
#define TK_NOW 122
#define TK_RESET 123
#define TK_QUERY 124
#define TK_ADD 125
#define TK_COLUMN 126
#define TK_TAG 127
#define TK_CHANGE 128
#define TK_SET 129
#define TK_KILL 130
#define TK_CONNECTION 131
#define TK_COLON 132
#define TK_STREAM 133
#define TK_ABORT 134
#define TK_AFTER 135
#define TK_ATTACH 136
#define TK_BEFORE 137
#define TK_BEGIN 138
#define TK_CASCADE 139
#define TK_CLUSTER 140
#define TK_CONFLICT 141
#define TK_COPY 142
#define TK_DEFERRED 143
#define TK_DELIMITERS 144
#define TK_DETACH 145
#define TK_EACH 146
#define TK_END 147
#define TK_EXPLAIN 148
#define TK_FAIL 149
#define TK_FOR 150
#define TK_IGNORE 151
#define TK_IMMEDIATE 152
#define TK_INITIALLY 153
#define TK_INSTEAD 154
#define TK_MATCH 155
#define TK_KEY 156
#define TK_OF 157
#define TK_RAISE 158
#define TK_REPLACE 159
#define TK_RESTRICT 160
#define TK_ROW 161
#define TK_STATEMENT 162
#define TK_TRIGGER 163
#define TK_VIEW 164
#define TK_COUNT 165
#define TK_SUM 166
#define TK_AVG 167
#define TK_MIN 168
#define TK_MAX 169
#define TK_FIRST 170
#define TK_LAST 171
#define TK_TOP 172
#define TK_BOTTOM 173
#define TK_STDDEV 174
#define TK_PERCENTILE 175
#define TK_APERCENTILE 176
#define TK_LEASTSQUARES 177
#define TK_HISTOGRAM 178
#define TK_DIFF 179
#define TK_SPREAD 180
#define TK_TWA 181
#define TK_INTERP 182
#define TK_LAST_ROW 183
#define TK_RATE 184
#define TK_IRATE 185
#define TK_SUM_RATE 186
#define TK_SUM_IRATE 187
#define TK_AVG_RATE 188
#define TK_AVG_IRATE 189
#define TK_SEMI 190
#define TK_NONE 191
#define TK_PREV 192
#define TK_LINEAR 193
#define TK_IMPORT 194
#define TK_METRIC 195
#define TK_TBNAME 196
#define TK_JOIN 197
#define TK_METRICS 198
#define TK_STABLE 199
#define TK_INSERT 200
#define TK_INTO 201
#define TK_VALUES 202
#define TK_MAXTABLES 86
#define TK_CACHE 87
#define TK_REPLICA 88
#define TK_DAYS 89
#define TK_MINROWS 90
#define TK_MAXROWS 91
#define TK_BLOCKS 92
#define TK_CTIME 93
#define TK_WAL 94
#define TK_COMP 95
#define TK_PRECISION 96
#define TK_LP 97
#define TK_RP 98
#define TK_TAGS 99
#define TK_USING 100
#define TK_AS 101
#define TK_COMMA 102
#define TK_NULL 103
#define TK_SELECT 104
#define TK_UNION 105
#define TK_ALL 106
#define TK_FROM 107
#define TK_VARIABLE 108
#define TK_INTERVAL 109
#define TK_FILL 110
#define TK_SLIDING 111
#define TK_ORDER 112
#define TK_BY 113
#define TK_ASC 114
#define TK_DESC 115
#define TK_GROUP 116
#define TK_HAVING 117
#define TK_LIMIT 118
#define TK_OFFSET 119
#define TK_SLIMIT 120
#define TK_SOFFSET 121
#define TK_WHERE 122
#define TK_NOW 123
#define TK_RESET 124
#define TK_QUERY 125
#define TK_ADD 126
#define TK_COLUMN 127
#define TK_TAG 128
#define TK_CHANGE 129
#define TK_SET 130
#define TK_KILL 131
#define TK_CONNECTION 132
#define TK_COLON 133
#define TK_STREAM 134
#define TK_ABORT 135
#define TK_AFTER 136
#define TK_ATTACH 137
#define TK_BEFORE 138
#define TK_BEGIN 139
#define TK_CASCADE 140
#define TK_CLUSTER 141
#define TK_CONFLICT 142
#define TK_COPY 143
#define TK_DEFERRED 144
#define TK_DELIMITERS 145
#define TK_DETACH 146
#define TK_EACH 147
#define TK_END 148
#define TK_EXPLAIN 149
#define TK_FAIL 150
#define TK_FOR 151
#define TK_IGNORE 152
#define TK_IMMEDIATE 153
#define TK_INITIALLY 154
#define TK_INSTEAD 155
#define TK_MATCH 156
#define TK_KEY 157
#define TK_OF 158
#define TK_RAISE 159
#define TK_REPLACE 160
#define TK_RESTRICT 161
#define TK_ROW 162
#define TK_STATEMENT 163
#define TK_TRIGGER 164
#define TK_VIEW 165
#define TK_COUNT 166
#define TK_SUM 167
#define TK_AVG 168
#define TK_MIN 169
#define TK_MAX 170
#define TK_FIRST 171
#define TK_LAST 172
#define TK_TOP 173
#define TK_BOTTOM 174
#define TK_STDDEV 175
#define TK_PERCENTILE 176
#define TK_APERCENTILE 177
#define TK_LEASTSQUARES 178
#define TK_HISTOGRAM 179
#define TK_DIFF 180
#define TK_SPREAD 181
#define TK_TWA 182
#define TK_INTERP 183
#define TK_LAST_ROW 184
#define TK_RATE 185
#define TK_IRATE 186
#define TK_SUM_RATE 187
#define TK_SUM_IRATE 188
#define TK_AVG_RATE 189
#define TK_AVG_IRATE 190
#define TK_SEMI 191
#define TK_NONE 192
#define TK_PREV 193
#define TK_LINEAR 194
#define TK_IMPORT 195
#define TK_METRIC 196
#define TK_TBNAME 197
#define TK_JOIN 198
#define TK_METRICS 199
#define TK_STABLE 200
#define TK_INSERT 201
#define TK_INTO 202
#define TK_VALUES 203
#endif
...
...
src/inc/twal.h
浏览文件 @
31029ee2
...
...
@@ -34,7 +34,7 @@ typedef struct {
}
SWalHead
;
typedef
struct
{
int8_t
commitLog
;
// commitLog
int8_t
walLevel
;
// wal level
int8_t
wals
;
// number of WAL files;
int8_t
keep
;
// keep the wal file when closed
}
SWalCfg
;
...
...
src/kit/shell/src/shellEngine.c
浏览文件 @
31029ee2
...
...
@@ -60,12 +60,10 @@ TAOS *shellInit(struct arguments *args) {
taos_init
();
/*
* set tsMetricMetaKeepTimer = 3000ms
* set tsMeterMetaKeepTimer = 3000ms
* set tsTableMetaKeepTimer = 3000ms
* means not save cache in shell
*/
tsMetricMetaKeepTimer
=
3
;
tsMeterMetaKeepTimer
=
3000
;
tsTableMetaKeepTimer
=
3000
;
// Connect to the database.
TAOS
*
con
=
taos_connect
(
args
->
host
,
args
->
user
,
args
->
password
,
args
->
database
,
tsMnodeShellPort
);
...
...
src/mnode/inc/mgmtDef.h
浏览文件 @
31029ee2
...
...
@@ -151,7 +151,7 @@ typedef struct {
int32_t
commitTime
;
int8_t
precision
;
int8_t
compression
;
int8_t
commitLog
;
int8_t
walLevel
;
int8_t
replications
;
int8_t
reserved
[
16
];
}
SDbCfg
;
...
...
src/mnode/src/mgmtDb.c
浏览文件 @
31029ee2
...
...
@@ -251,8 +251,8 @@ static int32_t mgmtCheckDbCfg(SDbCfg *pCfg) {
return
TSDB_CODE_INVALID_OPTION
;
}
if
(
pCfg
->
commitLog
<
TSDB_MIN_CLOG_LEVEL
||
pCfg
->
commitLog
>
TSDB_MAX_CLOG
_LEVEL
)
{
mError
(
"invalid db option
commitLog:%d, only 0-2 allowed"
,
pCfg
->
commitLog
);
if
(
pCfg
->
walLevel
<
TSDB_MIN_WAL_LEVEL
||
pCfg
->
walLevel
>
TSDB_MAX_WAL
_LEVEL
)
{
mError
(
"invalid db option
walLevel:%d, only 0-2 allowed"
,
pCfg
->
walLevel
);
return
TSDB_CODE_INVALID_OPTION
;
}
...
...
@@ -274,8 +274,8 @@ static int32_t mgmtCheckDbCfg(SDbCfg *pCfg) {
static
void
mgmtSetDefaultDbCfg
(
SDbCfg
*
pCfg
)
{
if
(
pCfg
->
cacheBlockSize
<
0
)
pCfg
->
cacheBlockSize
=
tsCacheBlockSize
;
if
(
pCfg
->
totalBlocks
<
0
)
pCfg
->
totalBlocks
=
ts
TotalBlocks
;
if
(
pCfg
->
maxTables
<
0
)
pCfg
->
maxTables
=
ts
Tables
PerVnode
;
if
(
pCfg
->
totalBlocks
<
0
)
pCfg
->
totalBlocks
=
ts
BlocksPerVnode
;
if
(
pCfg
->
maxTables
<
0
)
pCfg
->
maxTables
=
ts
MaxTable
PerVnode
;
if
(
pCfg
->
daysPerFile
<
0
)
pCfg
->
daysPerFile
=
tsDaysPerFile
;
if
(
pCfg
->
daysToKeep
<
0
)
pCfg
->
daysToKeep
=
tsDaysToKeep
;
if
(
pCfg
->
daysToKeep1
<
0
)
pCfg
->
daysToKeep1
=
pCfg
->
daysToKeep
;
...
...
@@ -285,7 +285,7 @@ static void mgmtSetDefaultDbCfg(SDbCfg *pCfg) {
if
(
pCfg
->
commitTime
<
0
)
pCfg
->
commitTime
=
tsCommitTime
;
if
(
pCfg
->
precision
<
0
)
pCfg
->
precision
=
tsTimePrecision
;
if
(
pCfg
->
compression
<
0
)
pCfg
->
compression
=
tsCompression
;
if
(
pCfg
->
commitLog
<
0
)
pCfg
->
commitLog
=
tsCommitLog
;
if
(
pCfg
->
walLevel
<
0
)
pCfg
->
walLevel
=
tsWAL
;
if
(
pCfg
->
replications
<
0
)
pCfg
->
replications
=
tsReplications
;
}
...
...
@@ -312,8 +312,8 @@ static int32_t mgmtCreateDb(SAcctObj *pAcct, SCMCreateDbMsg *pCreate) {
pDb
->
createdTime
=
taosGetTimestampMs
();
pDb
->
cfg
=
(
SDbCfg
)
{
.
cacheBlockSize
=
pCreate
->
cacheBlockSize
,
.
totalBlocks
=
pCreate
->
total
Blocks
,
.
maxTables
=
pCreate
->
max
Session
s
,
.
totalBlocks
=
pCreate
->
numOf
Blocks
,
.
maxTables
=
pCreate
->
max
Table
s
,
.
daysPerFile
=
pCreate
->
daysPerFile
,
.
daysToKeep
=
pCreate
->
daysToKeep
,
.
daysToKeep1
=
pCreate
->
daysToKeep1
,
...
...
@@ -323,7 +323,7 @@ static int32_t mgmtCreateDb(SAcctObj *pAcct, SCMCreateDbMsg *pCreate) {
.
commitTime
=
pCreate
->
commitTime
,
.
precision
=
pCreate
->
precision
,
.
compression
=
pCreate
->
compression
,
.
commitLog
=
pCreate
->
commitLog
,
.
walLevel
=
pCreate
->
walLevel
,
.
replications
=
pCreate
->
replications
};
...
...
@@ -491,7 +491,7 @@ static int32_t mgmtGetDbMeta(STableMetaMsg *pMeta, SShowObj *pShow, void *pConn)
#endif
pShow
->
bytes
[
cols
]
=
4
;
pSchema
[
cols
].
type
=
TSDB_DATA_TYPE_INT
;
strcpy
(
pSchema
[
cols
].
name
,
"tables"
);
strcpy
(
pSchema
[
cols
].
name
,
"
max
tables"
);
pSchema
[
cols
].
bytes
=
htons
(
pShow
->
bytes
[
cols
]);
cols
++
;
...
...
@@ -521,13 +521,13 @@ static int32_t mgmtGetDbMeta(STableMetaMsg *pMeta, SShowObj *pShow, void *pConn)
pShow
->
bytes
[
cols
]
=
4
;
pSchema
[
cols
].
type
=
TSDB_DATA_TYPE_INT
;
strcpy
(
pSchema
[
cols
].
name
,
"ctime(
s
)"
);
strcpy
(
pSchema
[
cols
].
name
,
"ctime(
Sec.
)"
);
pSchema
[
cols
].
bytes
=
htons
(
pShow
->
bytes
[
cols
]);
cols
++
;
pShow
->
bytes
[
cols
]
=
1
;
pSchema
[
cols
].
type
=
TSDB_DATA_TYPE_TINYINT
;
strcpy
(
pSchema
[
cols
].
name
,
"
clog
"
);
strcpy
(
pSchema
[
cols
].
name
,
"
wallevel
"
);
pSchema
[
cols
].
bytes
=
htons
(
pShow
->
bytes
[
cols
]);
cols
++
;
...
...
@@ -659,7 +659,7 @@ static int32_t mgmtRetrieveDbs(SShowObj *pShow, char *data, int32_t rows, void *
cols
++
;
pWrite
=
data
+
pShow
->
offset
[
cols
]
*
rows
+
pShow
->
bytes
[
cols
]
*
numOfRows
;
*
(
int8_t
*
)
pWrite
=
pDb
->
cfg
.
commitLog
;
*
(
int8_t
*
)
pWrite
=
pDb
->
cfg
.
walLevel
;
cols
++
;
pWrite
=
data
+
pShow
->
offset
[
cols
]
*
rows
+
pShow
->
bytes
[
cols
]
*
numOfRows
;
...
...
@@ -728,9 +728,10 @@ static int32_t mgmtSetDbDropping(SDbObj *pDb) {
static
void
mgmtProcessCreateDbMsg
(
SQueuedMsg
*
pMsg
)
{
SCMCreateDbMsg
*
pCreate
=
pMsg
->
pCont
;
pCreate
->
maxSessions
=
htonl
(
pCreate
->
maxSessions
);
pCreate
->
maxTables
=
htonl
(
pCreate
->
maxTables
);
pCreate
->
cacheBlockSize
=
htonl
(
pCreate
->
cacheBlockSize
);
pCreate
->
totalBlocks
=
htonl
(
pCreate
->
total
Blocks
);
pCreate
->
numOfBlocks
=
htonl
(
pCreate
->
numOf
Blocks
);
pCreate
->
daysPerFile
=
htonl
(
pCreate
->
daysPerFile
);
pCreate
->
daysToKeep
=
htonl
(
pCreate
->
daysToKeep
);
pCreate
->
daysToKeep1
=
htonl
(
pCreate
->
daysToKeep1
);
...
...
@@ -757,14 +758,15 @@ static void mgmtProcessCreateDbMsg(SQueuedMsg *pMsg) {
static
SDbCfg
mgmtGetAlterDbOption
(
SDbObj
*
pDb
,
SCMAlterDbMsg
*
pAlter
)
{
SDbCfg
newCfg
=
pDb
->
cfg
;
int32_t
cacheBlockSize
=
htonl
(
pAlter
->
daysToKeep
);
int32_t
totalBlocks
=
htonl
(
pAlter
->
total
Blocks
);
int32_t
maxTables
=
htonl
(
pAlter
->
maxSession
s
);
int32_t
daysToKeep
=
htonl
(
pAlter
->
daysToKeep
);
int32_t
totalBlocks
=
htonl
(
pAlter
->
numOf
Blocks
);
int32_t
maxTables
=
htonl
(
pAlter
->
maxTable
s
);
int32_t
daysToKeep
=
htonl
(
pAlter
->
daysToKeep
);
int32_t
daysToKeep1
=
htonl
(
pAlter
->
daysToKeep1
);
int32_t
daysToKeep2
=
htonl
(
pAlter
->
daysToKeep2
);
int8_t
compression
=
pAlter
->
compression
;
int8_t
replications
=
pAlter
->
replications
;
int8_t
walLevel
=
pAlter
->
walLevel
;
terrno
=
TSDB_CODE_SUCCESS
;
if
(
cacheBlockSize
>
0
&&
cacheBlockSize
!=
pDb
->
cfg
.
cacheBlockSize
)
{
...
...
@@ -820,6 +822,11 @@ static SDbCfg mgmtGetAlterDbOption(SDbObj *pDb, SCMAlterDbMsg *pAlter) {
mError
(
"db:%s, replica number can't change from 3 to 1"
,
pDb
->
name
,
replications
);
terrno
=
TSDB_CODE_INVALID_OPTION
;
}
if
(
walLevel
<
TSDB_MIN_WAL_LEVEL
||
walLevel
>
TSDB_MAX_WAL_LEVEL
)
{
mError
(
"db:%s, wal level should be between 0-2"
,
pDb
->
name
);
terrno
=
TSDB_CODE_INVALID_OPTION
;
}
return
newCfg
;
}
...
...
src/mnode/src/mgmtSdb.c
浏览文件 @
31029ee2
...
...
@@ -142,7 +142,7 @@ static void *sdbGetTableFromId(int32_t tableId) {
}
static
int32_t
sdbInitWal
()
{
SWalCfg
walCfg
=
{.
commitLog
=
2
,
.
wals
=
2
,
.
keep
=
1
};
SWalCfg
walCfg
=
{.
walLevel
=
2
,
.
wals
=
2
,
.
keep
=
1
};
tsSdbObj
.
wal
=
walOpen
(
tsMnodeDir
,
&
walCfg
);
if
(
tsSdbObj
.
wal
==
NULL
)
{
sdbError
(
"failed to open sdb wal in %s"
,
tsMnodeDir
);
...
...
src/mnode/src/mgmtVgroup.c
浏览文件 @
31029ee2
...
...
@@ -563,7 +563,7 @@ SMDCreateVnodeMsg *mgmtBuildCreateVnodeMsg(SVgObj *pVgroup) {
pCfg
->
commitTime
=
htonl
(
pDb
->
cfg
.
commitTime
);
pCfg
->
precision
=
pDb
->
cfg
.
precision
;
pCfg
->
compression
=
pDb
->
cfg
.
compression
;
pCfg
->
commitLog
=
pDb
->
cfg
.
commitLog
;
pCfg
->
walLevel
=
pDb
->
cfg
.
walLevel
;
pCfg
->
replications
=
(
int8_t
)
pVgroup
->
numOfVnodes
;
pCfg
->
wals
=
3
;
pCfg
->
quorum
=
1
;
...
...
src/query/inc/qsqlparser.h
浏览文件 @
31029ee2
...
...
@@ -111,13 +111,13 @@ typedef struct SCreateDBInfo {
SSQLToken
dbname
;
int32_t
replica
;
int32_t
cacheBlockSize
;
int32_t
tablesPerVnode
;
int32_t
maxTablesPerVnode
;
int32_t
numOfBlocks
;
int32_t
daysPerFile
;
int32_t
rowPerFileBlock
;
float
numOfAvgCacheBlocks
;
int32_t
numOfBlocksPerTable
;
int32_t
minRowsPerBlock
;
int32_t
maxRowsPerBlock
;
int64_t
commitTime
;
int32_t
commitLog
;
int32_t
walLevel
;
int32_t
compressionLevel
;
SSQLToken
precision
;
bool
ignoreExists
;
...
...
src/query/inc/sql.y
浏览文件 @
31029ee2
...
...
@@ -212,31 +212,30 @@ acct_optr(Y) ::= pps(C) tseries(D) storage(P) streams(F) qtime(Q) dbs(E) users(K
%destructor keep {tVariantListDestroy($$);}
keep(Y) ::= KEEP tagitemlist(X). { Y = X; }
tables(Y) ::=
TABLES INTEGER(X).
{ Y = X; }
tables(Y) ::=
MAXTABLES INTEGER(X).
{ Y = X; }
cache(Y) ::= CACHE INTEGER(X). { Y = X; }
replica(Y) ::= REPLICA INTEGER(X). { Y = X; }
days(Y) ::= DAYS INTEGER(X). { Y = X; }
rows(Y) ::= ROWS INTEGER(X). { Y = X; }
ablocks(Y) ::= ABLOCKS ID(X). { Y = X; }
tblocks(Y) ::= TBLOCKS INTEGER(X). { Y = X; }
minrows(Y) ::= MINROWS INTEGER(X). { Y = X; }
maxrows(Y) ::= MAXROWS INTEGER(X). { Y = X; }
blocks(Y) ::= BLOCKS INTEGER(X). { Y = X; }
ctime(Y) ::= CTIME INTEGER(X). { Y = X; }
clog(Y) ::= CLOG INTEGER(X).
{ Y = X; }
wal(Y) ::= WAL INTEGER(X).
{ Y = X; }
comp(Y) ::= COMP INTEGER(X). { Y = X; }
prec(Y) ::= PRECISION STRING(X). { Y = X; }
%type db_optr {SCreateDBInfo}
db_optr(Y) ::= . {setDefaultCreateDbOption(&Y);}
db_optr(Y) ::= db_optr(Z) tables(X). { Y = Z; Y.
t
ablesPerVnode = strtol(X.z, NULL, 10); }
db_optr(Y) ::= db_optr(Z) tables(X). { Y = Z; Y.
maxT
ablesPerVnode = strtol(X.z, NULL, 10); }
db_optr(Y) ::= db_optr(Z) cache(X). { Y = Z; Y.cacheBlockSize = strtol(X.z, NULL, 10); }
db_optr(Y) ::= db_optr(Z) replica(X). { Y = Z; Y.replica = strtol(X.z, NULL, 10); }
db_optr(Y) ::= db_optr(Z) days(X). { Y = Z; Y.daysPerFile = strtol(X.z, NULL, 10); }
db_optr(Y) ::= db_optr(Z)
rows(X). { Y = Z; Y.rowPerFileBlock = strtol(X.z, NULL, 10
); }
db_optr(Y) ::= db_optr(Z)
ablocks(X). { Y = Z; Y.numOfAvgCacheBlocks
= strtod(X.z, NULL); }
db_optr(Y) ::= db_optr(Z)
tblocks(X). { Y = Z; Y.numOfBlocksPerTable
= strtol(X.z, NULL, 10); }
db_optr(Y) ::= db_optr(Z)
minrows(X). { Y = Z; Y.minRowsPerBlock = strtod(X.z, NULL
); }
db_optr(Y) ::= db_optr(Z)
maxrows(X). { Y = Z; Y.maxRowsPerBlock
= strtod(X.z, NULL); }
db_optr(Y) ::= db_optr(Z)
blocks(X). { Y = Z; Y.numOfBlocks
= strtol(X.z, NULL, 10); }
db_optr(Y) ::= db_optr(Z) ctime(X). { Y = Z; Y.commitTime = strtol(X.z, NULL, 10); }
db_optr(Y) ::= db_optr(Z)
clog(X). { Y = Z; Y.commitLog
= strtol(X.z, NULL, 10); }
db_optr(Y) ::= db_optr(Z)
wal(X). { Y = Z; Y.walLevel
= strtol(X.z, NULL, 10); }
db_optr(Y) ::= db_optr(Z) comp(X). { Y = Z; Y.compressionLevel = strtol(X.z, NULL, 10); }
db_optr(Y) ::= db_optr(Z) prec(X). { Y = Z; Y.precision = X; }
db_optr(Y) ::= db_optr(Z) keep(X). { Y = Z; Y.keep = X; }
...
...
@@ -245,7 +244,11 @@ db_optr(Y) ::= db_optr(Z) keep(X). { Y = Z; Y.keep = X; }
alter_db_optr(Y) ::= . { setDefaultCreateDbOption(&Y);}
alter_db_optr(Y) ::= alter_db_optr(Z) replica(X). { Y = Z; Y.replica = strtol(X.z, NULL, 10); }
alter_db_optr(Y) ::= alter_db_optr(Z) tables(X). { Y = Z; Y.tablesPerVnode = strtol(X.z, NULL, 10); }
alter_db_optr(Y) ::= alter_db_optr(Z) tables(X). { Y = Z; Y.maxTablesPerVnode = strtol(X.z, NULL, 10); }
alter_db_optr(Y) ::= alter_db_optr(Z) keep(X). { Y = Z; Y.keep = X; }
alter_db_optr(Y) ::= alter_db_optr(Z) blocks(X). { Y = Z; Y.numOfBlocks = strtol(X.z, NULL, 10); }
alter_db_optr(Y) ::= alter_db_optr(Z) comp(X). { Y = Z; Y.compressionLevel = strtol(X.z, NULL, 10); }
alter_db_optr(Y) ::= alter_db_optr(Z) wal(X). { Y = Z; Y.walLevel = strtol(X.z, NULL, 10); }
%type typename {TAOS_FIELD}
typename(A) ::= ids(X). { tSQLSetColumnType (&A, &X); }
...
...
src/query/src/qparserImpl.c
浏览文件 @
31029ee2
...
...
@@ -886,16 +886,16 @@ void setKillSQL(SSqlInfo *pInfo, int32_t type, SSQLToken *ip) {
}
void
setDefaultCreateDbOption
(
SCreateDBInfo
*
pDBInfo
)
{
pDBInfo
->
numOfBlocksPerTable
=
50
;
pDBInfo
->
compressionLevel
=
-
1
;
pDBInfo
->
commitLog
=
-
1
;
pDBInfo
->
walLevel
=
-
1
;
pDBInfo
->
commitTime
=
-
1
;
pDBInfo
->
tablesPerVnode
=
-
1
;
pDBInfo
->
numOfAvgCacheBlocks
=
-
1
;
pDBInfo
->
maxTablesPerVnode
=
-
1
;
pDBInfo
->
cacheBlockSize
=
-
1
;
pDBInfo
->
rowPerFileBlock
=
-
1
;
pDBInfo
->
numOfBlocks
=
-
1
;
pDBInfo
->
maxRowsPerBlock
=
-
1
;
pDBInfo
->
minRowsPerBlock
=
-
1
;
pDBInfo
->
daysPerFile
=
-
1
;
pDBInfo
->
replica
=
-
1
;
...
...
src/query/src/qtokenizer.c
浏览文件 @
31029ee2
...
...
@@ -117,12 +117,13 @@ static SKeyword keywordTable[] = {
{
"KEEP"
,
TK_KEEP
},
{
"REPLICA"
,
TK_REPLICA
},
{
"DAYS"
,
TK_DAYS
},
{
"ROWS"
,
TK_ROWS
},
{
"MINROWS"
,
TK_MINROWS
},
{
"MAXROWS"
,
TK_MAXROWS
},
{
"BLOCKS"
,
TK_BLOCKS
},
{
"MAXTABLES"
,
TK_MAXTABLES
},
{
"CACHE"
,
TK_CACHE
},
{
"ABLOCKS"
,
TK_ABLOCKS
},
{
"TBLOCKS"
,
TK_TBLOCKS
},
{
"CTIME"
,
TK_CTIME
},
{
"
CLOG"
,
TK_CLOG
},
{
"
WAL"
,
TK_WAL
},
{
"COMP"
,
TK_COMP
},
{
"PRECISION"
,
TK_PRECISION
},
{
"LP"
,
TK_LP
},
...
...
src/query/src/sql.c
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
src/vnode/src/vnodeMain.c
浏览文件 @
31029ee2
...
...
@@ -117,7 +117,7 @@ int32_t vnodeCreate(SMDCreateVnodeMsg *pVnodeCfg) {
return
TSDB_CODE_VG_INIT_FAILED
;
}
dPrint
(
"vgId:%d, vnode is created, clog:%d"
,
pVnodeCfg
->
cfg
.
vgId
,
pVnodeCfg
->
cfg
.
commitLog
);
dPrint
(
"vgId:%d, vnode is created, clog:%d"
,
pVnodeCfg
->
cfg
.
vgId
,
pVnodeCfg
->
cfg
.
walLevel
);
code
=
vnodeOpen
(
pVnodeCfg
->
cfg
.
vgId
,
rootDir
);
return
code
;
...
...
@@ -433,7 +433,7 @@ static int32_t vnodeSaveCfg(SMDCreateVnodeMsg *pVnodeCfg) {
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
commitTime
\"
: %d,
\n
"
,
pVnodeCfg
->
cfg
.
commitTime
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
precision
\"
: %d,
\n
"
,
pVnodeCfg
->
cfg
.
precision
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
compression
\"
: %d,
\n
"
,
pVnodeCfg
->
cfg
.
compression
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
commitLog
\"
: %d,
\n
"
,
pVnodeCfg
->
cfg
.
commitLog
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
walLevel
\"
: %d,
\n
"
,
pVnodeCfg
->
cfg
.
walLevel
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
replica
\"
: %d,
\n
"
,
pVnodeCfg
->
cfg
.
replications
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
wals
\"
: %d,
\n
"
,
pVnodeCfg
->
cfg
.
wals
);
len
+=
snprintf
(
content
+
len
,
maxLen
-
len
,
"
\"
quorum
\"
: %d,
\n
"
,
pVnodeCfg
->
cfg
.
quorum
);
...
...
@@ -578,12 +578,12 @@ static int32_t vnodeReadCfg(SVnodeObj *pVnode) {
}
pVnode
->
tsdbCfg
.
compression
=
(
int8_t
)
compression
->
valueint
;
cJSON
*
commitLog
=
cJSON_GetObjectItem
(
root
,
"commitLog
"
);
if
(
!
commitLog
||
commitLog
->
type
!=
cJSON_Number
)
{
dError
(
"pVnode:%p vgId:%d, failed to read vnode cfg,
commitLog
not found"
,
pVnode
,
pVnode
->
vgId
);
cJSON
*
walLevel
=
cJSON_GetObjectItem
(
root
,
"walLevel
"
);
if
(
!
walLevel
||
walLevel
->
type
!=
cJSON_Number
)
{
dError
(
"pVnode:%p vgId:%d, failed to read vnode cfg,
walLevel
not found"
,
pVnode
,
pVnode
->
vgId
);
goto
PARSE_OVER
;
}
pVnode
->
walCfg
.
commitLog
=
(
int8_t
)
commitLog
->
valueint
;
pVnode
->
walCfg
.
walLevel
=
(
int8_t
)
walLevel
->
valueint
;
cJSON
*
wals
=
cJSON_GetObjectItem
(
root
,
"wals"
);
if
(
!
wals
||
wals
->
type
!=
cJSON_Number
)
{
...
...
src/wal/src/walMain.c
浏览文件 @
31029ee2
...
...
@@ -62,7 +62,7 @@ void *walOpen(const char *path, const SWalCfg *pCfg) {
pWal
->
max
=
pCfg
->
wals
;
pWal
->
id
=
0
;
pWal
->
num
=
0
;
pWal
->
level
=
pCfg
->
commitLog
;
pWal
->
level
=
pCfg
->
walLevel
;
pWal
->
keep
=
pCfg
->
keep
;
strcpy
(
pWal
->
path
,
path
);
pthread_mutex_init
(
&
pWal
->
mutex
,
NULL
);
...
...
src/wal/test/waltest.c
浏览文件 @
31029ee2
...
...
@@ -80,7 +80,7 @@ int main(int argc, char *argv[]) {
taosInitLog
(
"wal.log"
,
100000
,
10
);
SWalCfg
walCfg
;
walCfg
.
commitLog
=
level
;
walCfg
.
walLevel
=
level
;
walCfg
.
wals
=
max
;
walCfg
.
keep
=
keep
;
...
...
tests/examples/c/demo.c
浏览文件 @
31029ee2
...
...
@@ -74,8 +74,9 @@ int main(int argc, char *argv[]) {
printf
(
"success to connect to server
\n
"
);
doQuery
(
taos
,
"create database if not exists test"
);
doQuery
(
taos
,
"use test"
);
doQuery
(
taos
,
"select * from t1 order by ts desc"
);
doQuery
(
taos
,
"create database if not exists test"
);
// doQuery(taos, "use test");
// doQuery(taos, "select sum(k)*max(k), sum(k), max(k) from tm99");
// doQuery(taos, "create table t1(ts timestamp, k binary(12), f nchar(2))");
// for(int32_t i = 0; i< 100000; ++i) {
...
...
tests/pytest/insert/date.py
浏览文件 @
31029ee2
...
...
@@ -18,7 +18,7 @@ class TDTestCase:
# TSIM:
# TSIM: system sh/ip.sh -i 1 -s up
# TSIM: system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1
# TSIM: system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
# TSIM: system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
# TSIM: system sh/exec.sh -n dnode1 -s start
# TSIM:
# TSIM: sleep 3000
...
...
tests/pytest/table/column_name.py
浏览文件 @
31029ee2
...
...
@@ -18,7 +18,7 @@ class TDTestCase:
# TSIM:
# TSIM: system sh/ip.sh -i 1 -s up
# TSIM: system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1
# TSIM: system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
# TSIM: system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
# TSIM: system sh/exec.sh -n dnode1 -s start
# TSIM:
# TSIM: sleep 3000
...
...
tests/pytest/table/column_num.py
浏览文件 @
31029ee2
...
...
@@ -18,7 +18,7 @@ class TDTestCase:
# TSIM:
# TSIM: system sh/ip.sh -i 1 -s up
# TSIM: system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1
# TSIM: system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
# TSIM: system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
# TSIM: system sh/exec.sh -n dnode1 -s start
# TSIM:
# TSIM: sleep 3000
...
...
tests/script/general/agg/fill.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/alter/metrics.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/alter/table.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/cache/cache_balance.sim
浏览文件 @
31029ee2
...
...
@@ -4,8 +4,8 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode2 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode2 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c httpMaxThreads -v 2
system sh/cfg.sh -n dnode2 -c httpMaxThreads -v 2
system sh/cfg.sh -n dnode1 -c monitor -v 1
...
...
tests/script/general/cache/new_metrics.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c meterMetaKeepTimer -v 10
system sh/cfg.sh -n dnode1 -c metricMetaKeepTimer -v 10
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/cache/new_stream.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c meterMetaKeepTimer -v 10
system sh/cfg.sh -n dnode1 -c metricMetaKeepTimer -v 10
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/cache/restart_metrics.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c meterMetaKeepTimer -v 10
system sh/cfg.sh -n dnode1 -c metricMetaKeepTimer -v 10
system sh/exec.sh -n dnode1 -s start
...
...
@@ -48,7 +48,7 @@ endi
print =============== step2
system sh/exec.sh -n dnode1 -s stop
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c meterMetaKeepTimer -v 10
system sh/cfg.sh -n dnode1 -c metricMetaKeepTimer -v 10
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/cache/restart_stream.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c meterMetaKeepTimer -v 1
system sh/cfg.sh -n dnode1 -c metricMetaKeepTimer -v 1
system sh/exec.sh -n dnode1 -s start
...
...
@@ -98,7 +98,7 @@ endi
print =============== step4
system sh/exec.sh -n dnode1 -s stop
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c meterMetaKeepTimer -v 1
system sh/cfg.sh -n dnode1 -c metricMetaKeepTimer -v 1
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/cache/restart_table.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c meterMetaKeepTimer -v 10
system sh/cfg.sh -n dnode1 -c metricMetaKeepTimer -v 10
system sh/exec.sh -n dnode1 -s start
...
...
@@ -36,7 +36,7 @@ endi
print =============== step2
system sh/exec.sh -n dnode1 -s stop
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c meterMetaKeepTimer -v 10
system sh/cfg.sh -n dnode1 -c metricMetaKeepTimer -v 10
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/column/commit.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/column/metrics.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/column/table.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/compress/commitlog.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 1
system sh/cfg.sh -n dnode1 -c
walLevel
-v 1
system sh/cfg.sh -n dnode1 -c cacheBlockSize -v 1024
system sh/cfg.sh -n dnode1 -c compression -v 1
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/compress/compress.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c cacheBlockSize -v 1024
system sh/cfg.sh -n dnode1 -c compression -v 1
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/compress/compress2.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c cacheBlockSize -v 1024
system sh/cfg.sh -n dnode1 -c compression -v 2
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/compress/uncompress.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c cacheBlockSize -v 1024
system sh/cfg.sh -n dnode1 -c compression -v 1
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/compute/avg.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/bottom.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/count.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/diff.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/diff2.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/first.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/interval.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/last.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/leastsquare.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/max.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/min.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/compute/null.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/percentile.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/stddev.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/sum.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/compute/top.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/db/backup/keep.sim
浏览文件 @
31029ee2
...
...
@@ -6,9 +6,9 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode2 -c
commitLog
-v 0
system sh/cfg.sh -n dnode3 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode2 -c
walLevel
-v 0
system sh/cfg.sh -n dnode3 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
...
...
tests/script/general/db/delete_reuse1.sim
浏览文件 @
31029ee2
...
...
@@ -9,10 +9,10 @@ system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
system sh/deploy.sh -n dnode4 -i 4
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode2 -c
commitLog
-v 0
system sh/cfg.sh -n dnode3 -c
commitLog
-v 0
system sh/cfg.sh -n dnode4 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode2 -c
walLevel
-v 0
system sh/cfg.sh -n dnode3 -c
walLevel
-v 0
system sh/cfg.sh -n dnode4 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
...
...
tests/script/general/db/delete_reuse2.sim
浏览文件 @
31029ee2
...
...
@@ -9,10 +9,10 @@ system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
system sh/deploy.sh -n dnode4 -i 4
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode2 -c
commitLog
-v 0
system sh/cfg.sh -n dnode3 -c
commitLog
-v 0
system sh/cfg.sh -n dnode4 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode2 -c
walLevel
-v 0
system sh/cfg.sh -n dnode3 -c
walLevel
-v 0
system sh/cfg.sh -n dnode4 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
...
...
tests/script/general/db/delete_writing1.sim
浏览文件 @
31029ee2
...
...
@@ -9,10 +9,10 @@ system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
system sh/deploy.sh -n dnode4 -i 4
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode2 -c
commitLog
-v 0
system sh/cfg.sh -n dnode3 -c
commitLog
-v 0
system sh/cfg.sh -n dnode4 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode2 -c
walLevel
-v 0
system sh/cfg.sh -n dnode3 -c
walLevel
-v 0
system sh/cfg.sh -n dnode4 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
...
...
tests/script/general/db/len.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode1 -c sessionsPerVnode -v 2000
...
...
tests/script/general/db/tables.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode1 -c sessionsPerVnode -v 2000
...
...
tests/script/general/field/2.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/3.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/4.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/5.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/6.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/bigint.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/binary.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/bool.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/double.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/float.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/int.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/single.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/smallint.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/field/tinyint.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/http/grafana.sim
浏览文件 @
31029ee2
...
...
@@ -4,7 +4,7 @@ sleep 5000
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
#system sh/cfg.sh -n dnode1 -c adminRowLimit -v 10
system sh/cfg.sh -n dnode1 -c httpDebugFlag -v 135
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/http/grafana_bug.sim
浏览文件 @
31029ee2
...
...
@@ -4,7 +4,7 @@ sleep 2000
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
#system sh/cfg.sh -n dnode1 -c adminRowLimit -v 10
system sh/cfg.sh -n dnode1 -c httpDebugFlag -v 135
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/http/prepare.sim
浏览文件 @
31029ee2
...
...
@@ -4,7 +4,7 @@ sleep 5000
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/http/restful_insert.sim
浏览文件 @
31029ee2
...
...
@@ -4,7 +4,7 @@ sleep 5000
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c httpEnableRecordSql -v 1
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/http/restful_limit.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/http/telegraf.sim
浏览文件 @
31029ee2
...
...
@@ -4,7 +4,7 @@ sleep 5000
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c httpEnableRecordSql -v 1
system sh/cfg.sh -n dnode1 -c telegrafUseFieldNum -v 0
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/insert/basic.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/insert/insert_drop.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 1
system sh/cfg.sh -n dnode1 -c
walLevel
-v 1
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/insert/query_block1_file.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/insert/query_block1_memory.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/insert/query_block2_file.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/insert/query_block2_memory.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/insert/query_file_memory.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/insert/query_multi_file.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/insert/tcp.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/exec.sh -n dnode1 -s start
sleep 3000
...
...
tests/script/general/metrics/disk.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode1 -c sessionsPerVnode -v 4
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/metrics/metrics.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode1 -c sessionsPerVnode -v 4
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/metrics/values.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode1 -c sessionsPerVnode -v 4
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/metrics/vnode3.sim
浏览文件 @
31029ee2
...
...
@@ -2,7 +2,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode1 -c sessionsPerVnode -v 4
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/parser/alter.sim
浏览文件 @
31029ee2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c
commitLog
-v 0
system sh/cfg.sh -n dnode1 -c
walLevel
-v 0
system sh/cfg.sh -n dnode1 -c meterMetaKeepTimer -v 3
system sh/cfg.sh -n dnode1 -c metricMetaKeepTimer -v 3
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/parser/alter1.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/alter_stable.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/auto_create_tb.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/auto_create_tb_drop_tb.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/binary_escapeCharacter.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/bug.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/col_arithmetic_operation.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/columnValue.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/columnValue_bool.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/commit.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/create_db.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/create_mt.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/create_tb.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/dbtbnameValidate.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/fill.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/fill_stb.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/first_last.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/groupby.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/import.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/import_commit1.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/import_commit2.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/import_commit3.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/import_file.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/insert_multiTbl.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/insert_tb.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/interp.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/join.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/join_multivnode.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/lastrow.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/limit.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/limit1.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/limit1_tblocks100.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/limit2.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/limit2_tblocks100.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/mixed_blocks.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/nchar.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/null_char.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/projection_limit_offset.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/selectResNum.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/select_across_vnodes.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/select_from_cache_disk.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/select_with_tags.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/set_tag_vals.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/single_row_in_tb.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/slimit.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/slimit1.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/slimit_alter_tags.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/stream.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/stream_on_sys.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/tags_dynamically_specifiy.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/tags_filter.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/tbnameIn.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/testSuite.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/timestamp.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/parser/where.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/metrics_1.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/metrics_del.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/metrics_n.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/metrics_replica1_vnoden.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/stream_1.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/stream_2.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/stream_3.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/stream_restart.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/table_1.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/table_del.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/table_n.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/stream/table_replica1_vnoden.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/bigint.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/binary.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/bool.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/column2.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/column_name.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/column_num.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/column_value.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/date.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/db.table.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/delete_reuse1.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/delete_reuse2.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/delete_writing.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/describe.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/double.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/float.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/int.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/limit.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/smallint.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/table.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/table_len.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/tinyint.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/table/vgroup.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/3.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/4.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/5.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/6.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/add.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/bigint.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/binary.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/binary_binary.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/bool.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/bool_binary.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/bool_int.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/change.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/column.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/commit.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/create.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/delete.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/double.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/float.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/int.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/int_binary.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/int_float.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/set.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/smallint.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/tag/tinyint.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/vector/metrics_field.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/vector/metrics_mix.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/vector/metrics_query.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/vector/metrics_tag.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/vector/metrics_time.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/vector/multi.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/vector/single.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/vector/table_field.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/vector/table_mix.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/vector/table_query.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/general/vector/table_time.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/tmp/prepare.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/big/tcp.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/db/commit.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/metrics/balance_replica1.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/metrics/dnode2.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/metrics/dnode2_stop.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/metrics/dnode3.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/metrics/replica2_dnode4.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/metrics/replica2_vnode3.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/metrics/replica3_dnode6.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/metrics/replica3_vnode3.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/metrics_balance.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/metrics_replica1_dnode2.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/metrics_replica2_dnode2.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/metrics_replica2_dnode2_vnoden.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/metrics_replica2_dnode3.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/metrics_replica3_dnode4.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/metrics_vnode_stop.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/table_balance.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/table_replica1_dnode2.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/table_replica2_dnode2.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/table_replica2_dnode2_vnoden.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/table_replica2_dnode3.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/table_replica3_dnode4.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/stream/table_vnode_stop.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/table/delete_part.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/vnode/backup/replica4.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
tests/script/unique/vnode/backup/replica5.sim
浏览文件 @
31029ee2
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录