提交 dc1d5c09 编写于 作者: A Alex Duan

[TS-1220]<feature>(tsdb): TSZ config num can not add

上级 005b660c
......@@ -1812,9 +1812,10 @@ static void doInitGlobalConfig(void) {
cfg.ptrLength = 0;
cfg.unitType = TAOS_CFG_UTYPE_NONE;
taosInitConfigOption(cfg);
assert(tsGlobalConfigNum < TSDB_CFG_MAX_NUM);
assert(tsGlobalConfigNum == TSDB_CFG_MAX_NUM);
#else
assert(tsGlobalConfigNum < TSDB_CFG_MAX_NUM);
// if TD_TSZ macro define, have 5 count configs, so must add 5
assert(tsGlobalConfigNum + 5 == TSDB_CFG_MAX_NUM);
#endif
}
......
......@@ -20,7 +20,7 @@
extern "C" {
#endif
#define TSDB_CFG_MAX_NUM 132
#define TSDB_CFG_MAX_NUM 133
#define TSDB_CFG_PRINT_LEN 23
#define TSDB_CFG_OPTION_LEN 24
#define TSDB_CFG_VALUE_LEN 41
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册