From 15a069e7104923af54eec35929f2eac8cb7e85d4 Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Thu, 7 Nov 2024 13:34:40 +0800 Subject: [PATCH] address comments Signed-off-by: lhy1024 --- server/cluster/cluster.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/cluster/cluster.go b/server/cluster/cluster.go index 796a5963630..9d6f51b48e7 100644 --- a/server/cluster/cluster.go +++ b/server/cluster/cluster.go @@ -463,6 +463,7 @@ func (c *RaftCluster) runServiceCheckJob() { case <-tsoTicker.C: // ensure raft cluster is running // avoid unexpected startTSOJobsIfNeeded when raft cluster is stopping + // ref: https://github.com/tikv/pd/issues/8781 c.RLock() if c.running { c.checkTSOService()