Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <admin@liudos.us>
  • Loading branch information
lhy1024 committed Nov 26, 2024
1 parent 26b9dcc commit 97163fb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,10 @@ func (c *RaftCluster) startTSOJobsIfNeeded() error {
log.Error("failed to initialize the global TSO allocator", errs.ZapError(err))
return err
}
} else {
} else if !c.running {
// If the global TSO allocator is already initialized, but the running flag is false,
// it means there maybe unexpected error happened before.
if !c.running {
log.Warn("the global TSO allocator is already initialized before, but the cluster is not running")
}
log.Warn("the global TSO allocator is already initialized before, but the cluster is not running")
}
return nil
}
Expand Down

0 comments on commit 97163fb

Please sign in to comment.