mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
5b9e8c4f60
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
40 lines
901 B
Go
40 lines
901 B
Go
package writenode
|
|
|
|
type (
|
|
// segID: set when flushComplete == true, to tell
|
|
// the flush_sync_service which segFlush msg does this
|
|
// DDL flush for, so that ddl flush and insert flush
|
|
// will sync.
|
|
ddlBinlogPathMsg struct {
|
|
collID UniqueID
|
|
segID UniqueID
|
|
paths []string
|
|
}
|
|
|
|
ddlFlushSyncMsg struct {
|
|
ddlBinlogPathMsg
|
|
flushCompleted bool
|
|
}
|
|
|
|
insertBinlogPathMsg struct {
|
|
ts Timestamp
|
|
segID UniqueID
|
|
fieldID int64 // TODO GOOSE may need to change
|
|
paths []string
|
|
}
|
|
|
|
// This Msg can notify flushSyncService
|
|
// 1.To append binary logs
|
|
// 2.To set flush-completed status
|
|
//
|
|
// When `flushComplete == false`
|
|
// `ts` means OpenTime of a segFlushMeta
|
|
// When `flushComplete == true`
|
|
// `ts` means CloseTime of a segFlushMeta,
|
|
// `fieldID` and `paths` need to be empty
|
|
insertFlushSyncMsg struct {
|
|
insertBinlogPathMsg
|
|
flushCompleted bool
|
|
}
|
|
)
|