Skip to content

Commit

Permalink
Print the server id when active-standby switch (milvus-io#27119)
Browse files Browse the repository at this point in the history
Signed-off-by: longjiquan <[email protected]>
  • Loading branch information
longjiquan authored Oct 7, 2023
1 parent 6d4492d commit 5c1abfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/util/sessionutil/session_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ func (s *Session) ProcessActiveStandBy(activateFunc func() error) error {
}

s.updateStandby(false)
log.Info(fmt.Sprintf("serverName: %v quit STANDBY mode, this node will become ACTIVE", s.ServerName))
log.Info(fmt.Sprintf("serverName: %v quit STANDBY mode, this node will become ACTIVE, ID: %d", s.ServerName, s.ServerID))
if activateFunc != nil {
return activateFunc()
}
Expand Down Expand Up @@ -1079,7 +1079,7 @@ func (s *Session) ForceActiveStandby(activateFunc func() error) error {
return err
}
s.updateStandby(false)
log.Info(fmt.Sprintf("serverName: %v quit STANDBY mode, this node will become ACTIVE", s.ServerName))
log.Info(fmt.Sprintf("serverName: %v quit STANDBY mode, this node will become ACTIVE, ID: %d", s.ServerName, s.ServerID))
if activateFunc != nil {
return activateFunc()
}
Expand Down

0 comments on commit 5c1abfa

Please sign in to comment.