Skip to content

Commit 8430964

Browse files
committed
server/cluster: align leader-ready log wording
Signed-off-by: bufferflies <1045931706@qq.com>
1 parent 6977c00 commit 8430964

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/cluster/cluster.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,15 +340,15 @@ func (c *RaftCluster) Start(s Server, bootstrap bool) (err error) {
340340
return nil
341341
}
342342
c.isKeyspaceGroupEnabled = s.IsKeyspaceGroupEnabled()
343-
log.Info("[leader-ready] start to init cluster")
343+
log.Info("[leader-ready] start to initialize cluster")
344344
initClusterStart := time.Now()
345345
err = c.InitCluster(s.GetAllocator(), s.GetPersistOptions(), s.GetHBStreams(), s.GetKeyspaceGroupManager())
346346
if err != nil {
347-
log.Error("[leader-ready] failed to init cluster", errs.ZapError(err), zap.Duration("cost", time.Since(initClusterStart)))
347+
log.Error("[leader-ready] failed to initialize cluster", errs.ZapError(err), zap.Duration("cost", time.Since(initClusterStart)))
348348
return err
349349
}
350350
initClusterDuration := time.Since(initClusterStart)
351-
log.Info("[leader-ready] init cluster completed", zap.Duration("cost", initClusterDuration))
351+
log.Info("[leader-ready] initialize cluster completed", zap.Duration("cost", initClusterDuration))
352352
// We should not manage tso service when bootstrap try to start raft cluster.
353353
// It only is controlled by leader election.
354354
// Ref: https://github.com/tikv/pd/issues/8836

0 commit comments

Comments
 (0)