TD-12696 bug fix for insert
This commit is contained in:
parent
0d4490bce8
commit
17b9917bfa
|
@ -121,12 +121,8 @@ static int32_t findCol(SToken* pColname, int32_t start, int32_t end, SSchema* pS
|
|||
}
|
||||
|
||||
static void buildMsgHeader(SVgDataBlocks* blocks) {
|
||||
// SMsgDesc* desc = (SMsgDesc*)blocks->pData;
|
||||
// desc->numOfVnodes = htonl(1);
|
||||
// SSubmitMsg* submit = (SSubmitMsg*)(desc + 1);
|
||||
SSubmitMsg* submit = (SSubmitMsg*)blocks->pData;
|
||||
submit->header.vgId = htonl(blocks->vg.vgId);
|
||||
// submit->header.contLen = htonl(blocks->size - sizeof(SMsgDesc));
|
||||
submit->header.contLen = htonl(blocks->size);
|
||||
submit->length = submit->header.contLen;
|
||||
submit->numOfBlocks = htonl(blocks->numOfTables);
|
||||
|
|
|
@ -28,7 +28,7 @@ class TableBuilder : public ITableBuilder {
|
|||
public:
|
||||
virtual TableBuilder& addColumn(const std::string& name, int8_t type, int32_t bytes) {
|
||||
assert(colId_ <= schema()->tableInfo.numOfTags + schema()->tableInfo.numOfColumns);
|
||||
SSchema* col = schema()->schema + colId_;
|
||||
SSchema* col = schema()->schema + (colId_ - 1);
|
||||
col->type = type;
|
||||
col->colId = colId_++;
|
||||
col->bytes = bytes;
|
||||
|
|
Loading…
Reference in New Issue