Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Oct 22, 2024
1 parent 56688a0 commit c600920
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,14 @@ func (s *Server) GetRaftCluster() *cluster.RaftCluster {

// IsServiceIndependent returns whether the service is independent.
func (s *Server) IsServiceIndependent(name string) bool {
return s.mode == APIServiceMode && !s.IsClosed() && s.cluster.IsServiceIndependent(name)
if s.mode == APIServiceMode && !s.IsClosed() {
// TODO: remove it after we support tso discovery
if name == constant.TSOServiceName {
return true
}
return s.cluster.IsServiceIndependent(name)
}
return false
}

// DirectlyGetRaftCluster returns raft cluster directly.
Expand Down

0 comments on commit c600920

Please sign in to comment.