mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix querycoord metrics (#20429)
Signed-off-by: longjiquan <jiquan.long@zilliz.com> Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
parent
cc9dc0f0fa
commit
854fb6aad2
@ -296,6 +296,12 @@ func (s *Server) initObserver() {
|
||||
)
|
||||
}
|
||||
|
||||
func (s *Server) afterStart() {
|
||||
now := time.Now()
|
||||
Params.QueryCoordCfg.CreatedTime = now
|
||||
Params.QueryCoordCfg.UpdatedTime = now
|
||||
}
|
||||
|
||||
func (s *Server) Start() error {
|
||||
log.Info("start watcher...")
|
||||
sessions, revision, err := s.session.GetSessions(typeutil.QueryNodeRole)
|
||||
@ -348,6 +354,8 @@ func (s *Server) Start() error {
|
||||
}
|
||||
log.Info("QueryCoord started")
|
||||
|
||||
s.afterStart()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user