Skip to content

Commit

Permalink
Update binlog event format (milvus-io#18347)
Browse files Browse the repository at this point in the history
Signed-off-by: xige-16 <[email protected]>

Signed-off-by: xige-16 <[email protected]>
  • Loading branch information
xige-16 authored Aug 11, 2022
1 parent 6c3dbf0 commit e40061b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/developer_guides/chap08_binlog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
+=====================================+=====================================================================|
```

Expand Down
1 change: 1 addition & 0 deletions internal/storage/data_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e40061b

Please sign in to comment.