milvus/internal/querycoordv2/session/stats.go
Bingyi Sun 626854cf0c
Refactor QueryCoord (#18836)
Signed-off-by: sunby <bingyi.sun@zilliz.com>
Co-authored-by: yah01 <yang.cen@zilliz.com>
Co-authored-by: Wei Liu <wei.liu@zilliz.com>
Co-authored-by: Congqi Xia <congqi.xia@zilliz.com>

Signed-off-by: sunby <bingyi.sun@zilliz.com>
Co-authored-by: sunby <bingyi.sun@zilliz.com>
Co-authored-by: yah01 <yang.cen@zilliz.com>
Co-authored-by: Wei Liu <wei.liu@zilliz.com>
Co-authored-by: Congqi Xia <congqi.xia@zilliz.com>
2022-09-15 18:48:32 +08:00

27 lines
366 B
Go

package session
type stats struct {
segmentCnt int
channelCnt int
}
func (s *stats) setSegmentCnt(cnt int) {
s.segmentCnt = cnt
}
func (s *stats) getSegmentCnt() int {
return s.segmentCnt
}
func (s *stats) setChannelCnt(cnt int) {
s.channelCnt = cnt
}
func (s *stats) getChannelCnt() int {
return s.channelCnt
}
func newStats() stats {
return stats{}
}