create stb

This commit is contained in:
Shengliang Guan 2022-02-09 18:55:16 +08:00
parent 7b942097c1
commit bfdd7b2c26
2 changed files with 7 additions and 6 deletions

View File

@ -163,6 +163,12 @@ typedef struct {
int32_t vgVersion;
} SBuildUseDBInput;
typedef struct SField {
char name[TSDB_COL_NAME_LEN];
uint8_t type;
int32_t bytes;
} SField;
#pragma pack(push, 1)
// null-terminated string instead of char array to avoid too many memory consumption in case of more than 1M tableMeta
@ -249,12 +255,6 @@ typedef struct SSchema {
char name[TSDB_COL_NAME_LEN];
} SSchema;
typedef struct SField {
char name[TSDB_COL_NAME_LEN];
uint8_t type;
int32_t bytes;
} SField;
typedef struct {
char name[TSDB_TABLE_FNAME_LEN];
int8_t igExists;

View File

@ -277,6 +277,7 @@ SMCreateStbReq* buildCreateStbMsg(SCreateTableSql* pCreateTableSql, int32_t* len
void *buf = req;
tSerializeSMCreateStbReq(&buf, &createReq);
*len = tlen;
return req;
}