mirror of https://github.com/milvus-io/milvus.git
Fix querycoord metrics (#20429)
Signed-off-by: longjiquan <jiquan.long@zilliz.com> Signed-off-by: longjiquan <jiquan.long@zilliz.com>pull/20425/head
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…
Reference in New Issue