fix table/column_num.py coredump

This commit is contained in:
Hongze Cheng 2020-05-28 03:39:31 +00:00
parent 0be65a23c6
commit 85c9508fb7
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ int tsdbCreateTable(TsdbRepoT *repo, STableCfg *pCfg) {
// Write to meta file // Write to meta file
int bufLen = 0; int bufLen = 0;
char *buf = malloc(4096); char *buf = malloc(1024*1024);
if (newSuper) { if (newSuper) {
tsdbEncodeTable(super, buf, &bufLen); tsdbEncodeTable(super, buf, &bufLen);
tsdbInsertMetaRecord(pMeta->mfh, super->tableId.uid, buf, bufLen); tsdbInsertMetaRecord(pMeta->mfh, super->tableId.uid, buf, bufLen);