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: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
Shuduo Sang 2021-04-01 16:06:25 +08:00 committed by GitHub
parent 598b1ce6bf
commit e39762deb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {
} }
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) {