Update binlog event format (#18347)

Signed-off-by: xige-16 <xi.ge@zilliz.com>

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2022-08-11 14:06:38 +08:00 committed by GitHub
parent 6c3dbf0a07
commit e40061b864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -54,11 +54,11 @@ Binlog file consists of 4 bytes magic number and a series of events. The first e
| +----------------------------+---------------------------------------------------------------------+
| | PayloadDataType 65 : 4 | data type of payload |
| +----------------------------+---------------------------------------------------------------------+
| | PostHeaderLengths n : n | header lengths for all event types |
| +----------------------------+---------------------------------------------------------------------+
| | ExtraLength 69 : 4 | length of extra information |
| +----------------------------+---------------------------------------------------------------------+
| | ExtraBytes 73 : n | extra information in json format |
| +----------------------------+---------------------------------------------------------------------+
| | PostHeaderLengths n : n | header lengths for all event types |
+=====================================+=====================================================================|
```

View File

@ -286,6 +286,7 @@ func (insertCodec *InsertCodec) Serialize(partitionID UniqueID, segmentID Unique
startTs := ts[0]
endTs := ts[len(ts)-1]
// sort insert data by rowID
dataSorter := &DataSorter{
InsertCodec: insertCodec,
InsertData: data,