Merge pull request #5436 from taosdata/hotfix/sangshuduo/TD-3215-bus-error-arm32
Hotfix/sangshuduo/td 3215 bus error arm32
This commit is contained in:
commit
e30909d7fb
|
@ -232,6 +232,7 @@ typedef struct SQueryInfo {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int command;
|
int command;
|
||||||
uint8_t msgType;
|
uint8_t msgType;
|
||||||
|
char reserve1[3]; // fix bus error on arm32
|
||||||
bool autoCreated; // create table if it is not existed during retrieve table meta in mnode
|
bool autoCreated; // create table if it is not existed during retrieve table meta in mnode
|
||||||
|
|
||||||
union {
|
union {
|
||||||
|
@ -244,8 +245,10 @@ typedef struct {
|
||||||
|
|
||||||
char * curSql; // current sql, resume position of sql after parsing paused
|
char * curSql; // current sql, resume position of sql after parsing paused
|
||||||
int8_t parseFinished;
|
int8_t parseFinished;
|
||||||
|
char reserve2[3]; // fix bus error on arm32
|
||||||
|
|
||||||
int16_t numOfCols;
|
int16_t numOfCols;
|
||||||
|
char reserve3[2]; // fix bus error on arm32
|
||||||
uint32_t allocSize;
|
uint32_t allocSize;
|
||||||
char * payload;
|
char * payload;
|
||||||
int32_t payloadLen;
|
int32_t payloadLen;
|
||||||
|
@ -255,7 +258,9 @@ typedef struct {
|
||||||
int32_t numOfParams;
|
int32_t numOfParams;
|
||||||
|
|
||||||
int8_t dataSourceType; // load data from file or not
|
int8_t dataSourceType; // load data from file or not
|
||||||
|
char reserve4[3]; // fix bus error on arm32
|
||||||
int8_t submitSchema; // submit block is built with table schema
|
int8_t submitSchema; // submit block is built with table schema
|
||||||
|
char reserve5[3]; // fix bus error on arm32
|
||||||
STagData tagData; // NOTE: pTagData->data is used as a variant length array
|
STagData tagData; // NOTE: pTagData->data is used as a variant length array
|
||||||
|
|
||||||
SName **pTableNameList; // all involved tableMeta list of current insert sql statement.
|
SName **pTableNameList; // all involved tableMeta list of current insert sql statement.
|
||||||
|
|
|
@ -307,7 +307,8 @@ int32_t tsParseOneColumnData(SSchema *pSchema, SStrToken *pToken, char *payload,
|
||||||
return tscInvalidSQLErrMsg(msg, "illegal float data", pToken->z);
|
return tscInvalidSQLErrMsg(msg, "illegal float data", pToken->z);
|
||||||
}
|
}
|
||||||
|
|
||||||
*((float *)payload) = (float)dv;
|
// *((float *)payload) = (float)dv;
|
||||||
|
SET_FLOAT_VAL(payload, dv);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -628,6 +628,7 @@ typedef struct {
|
||||||
int32_t maxtablesPerVnode;
|
int32_t maxtablesPerVnode;
|
||||||
int32_t maxVgroupsPerDb;
|
int32_t maxVgroupsPerDb;
|
||||||
char arbitrator[TSDB_EP_LEN]; // tsArbitrator
|
char arbitrator[TSDB_EP_LEN]; // tsArbitrator
|
||||||
|
char reserve[2]; // to solve arm32 bus error
|
||||||
char timezone[64]; // tsTimezone
|
char timezone[64]; // tsTimezone
|
||||||
int64_t checkTime; // 1970-01-01 00:00:00.000
|
int64_t checkTime; // 1970-01-01 00:00:00.000
|
||||||
char locale[TSDB_LOCALE_LEN]; // tsLocale
|
char locale[TSDB_LOCALE_LEN]; // tsLocale
|
||||||
|
|
Loading…
Reference in New Issue