Skip to content

Commit

Permalink
Merge branch 'master' into err
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot[bot] authored Nov 26, 2024
2 parents 59f1db3 + 69bcd48 commit a84b2a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,10 @@ func (c *RaftCluster) startTSOJobsIfNeeded() error {
log.Error("failed to initialize the global TSO allocator", errs.ZapError(err))
return err
}
} else {
log.Warn("the global TSO allocator is already initialized")
} 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.
log.Warn("the global TSO allocator is already initialized before, but the cluster is not running")
}
return nil
}
Expand Down

0 comments on commit a84b2a9

Please sign in to comment.