2020-12-26 08:28:55 +00:00
|
|
|
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
|
2020-12-28 07:25:16 +00:00
|
|
|
fieldID int64 // TODO GOOSE may need to change
|
2020-12-26 08:28:55 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
)
|