From 97163fb47e6c3a8ae320959316dfc4502db58de1 Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Tue, 26 Nov 2024 12:02:14 +0800 Subject: [PATCH] fix ci Signed-off-by: lhy1024 --- server/cluster/cluster.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/cluster/cluster.go b/server/cluster/cluster.go index 43a2611e2aa..28b0f218371 100644 --- a/server/cluster/cluster.go +++ b/server/cluster/cluster.go @@ -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 }