create stb
This commit is contained in:
parent
7b942097c1
commit
bfdd7b2c26
|
@ -163,6 +163,12 @@ typedef struct {
|
||||||
int32_t vgVersion;
|
int32_t vgVersion;
|
||||||
} SBuildUseDBInput;
|
} SBuildUseDBInput;
|
||||||
|
|
||||||
|
typedef struct SField {
|
||||||
|
char name[TSDB_COL_NAME_LEN];
|
||||||
|
uint8_t type;
|
||||||
|
int32_t bytes;
|
||||||
|
} SField;
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
// null-terminated string instead of char array to avoid too many memory consumption in case of more than 1M tableMeta
|
// 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];
|
char name[TSDB_COL_NAME_LEN];
|
||||||
} SSchema;
|
} SSchema;
|
||||||
|
|
||||||
typedef struct SField {
|
|
||||||
char name[TSDB_COL_NAME_LEN];
|
|
||||||
uint8_t type;
|
|
||||||
int32_t bytes;
|
|
||||||
} SField;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char name[TSDB_TABLE_FNAME_LEN];
|
char name[TSDB_TABLE_FNAME_LEN];
|
||||||
int8_t igExists;
|
int8_t igExists;
|
||||||
|
|
|
@ -277,6 +277,7 @@ SMCreateStbReq* buildCreateStbMsg(SCreateTableSql* pCreateTableSql, int32_t* len
|
||||||
|
|
||||||
void *buf = req;
|
void *buf = req;
|
||||||
tSerializeSMCreateStbReq(&buf, &createReq);
|
tSerializeSMCreateStbReq(&buf, &createReq);
|
||||||
|
*len = tlen;
|
||||||
return req;
|
return req;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue