未验证 提交 e39762de 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

Hotfix/sangshuduo/td 3631 max stb count (#5645)

* [TD-3631] <fix>: increase max super table count to 10000

* [TD-3631] <fix>: use smaller max stb count due to data structure limit.
Co-authored-by: NShuduo Sang <sdsang@taosdata.com>
上级 598b1ce6
...@@ -85,7 +85,7 @@ enum TEST_MODE { ...@@ -85,7 +85,7 @@ enum TEST_MODE {
#define MAX_NUM_DATATYPE 10 #define MAX_NUM_DATATYPE 10
#define MAX_DB_COUNT 8 #define MAX_DB_COUNT 8
#define MAX_SUPER_TABLE_COUNT 8 #define MAX_SUPER_TABLE_COUNT 200
#define MAX_COLUMN_COUNT 1024 #define MAX_COLUMN_COUNT 1024
#define MAX_TAG_COUNT 128 #define MAX_TAG_COUNT 128
...@@ -4090,7 +4090,7 @@ static bool getInfoFromJsonFile(char* file) { ...@@ -4090,7 +4090,7 @@ static bool getInfoFromJsonFile(char* file) {
} }
bool ret = false; bool ret = false;
int maxLen = 64000; int maxLen = 6400000;
char *content = calloc(1, maxLen + 1); char *content = calloc(1, maxLen + 1);
int len = fread(content, 1, maxLen, fp); int len = fread(content, 1, maxLen, fp);
if (len <= 0) { if (len <= 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册