mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
36 lines
659 B
Go
36 lines
659 B
Go
|
package reader
|
||
|
|
||
|
type QueryNodeTime struct {
|
||
|
ReadTimeSyncMin uint64
|
||
|
ReadTimeSyncMax uint64
|
||
|
WriteTimeSync uint64
|
||
|
SearchTimeSync uint64
|
||
|
TSOTimeSync uint64
|
||
|
}
|
||
|
|
||
|
type TimeRange struct {
|
||
|
timestampMin uint64
|
||
|
timestampMax uint64
|
||
|
}
|
||
|
|
||
|
func (t *QueryNodeTime) UpdateReadTimeSync() {
|
||
|
t.ReadTimeSyncMin = t.ReadTimeSyncMax
|
||
|
// TODO: Add time sync
|
||
|
t.ReadTimeSyncMax = 1
|
||
|
}
|
||
|
|
||
|
func (t *QueryNodeTime) UpdateWriteTimeSync() {
|
||
|
// TODO: Add time sync
|
||
|
t.WriteTimeSync = 0
|
||
|
}
|
||
|
|
||
|
func (t *QueryNodeTime) UpdateSearchTimeSync() {
|
||
|
// TODO: Add time sync
|
||
|
t.SearchTimeSync = 0
|
||
|
}
|
||
|
|
||
|
func (t *QueryNodeTime) UpdateTSOTimeSync() {
|
||
|
// TODO: Add time sync
|
||
|
t.TSOTimeSync = 0
|
||
|
}
|