Skip to content

Commit

Permalink
add comnments
Browse files Browse the repository at this point in the history
Signed-off-by: ystaticy <y_static_y@sina.com>
  • Loading branch information
ystaticy committed Feb 2, 2023
1 parent 1bf9285 commit 0c1cb16
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion domain/infosync/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ var ErrPrometheusAddrIsNotSet = dbterror.ClassDomain.NewStd(errno.ErrPrometheusA

// InfoSyncer stores server info to etcd when the tidb-server starts and delete when tidb-server shuts down.
type InfoSyncer struct {
etcdCli *clientv3.Client
// `etcdClient` must be used when keyspace is not set, or when the logic to each etcd path needs to be separated by keyspace.
etcdCli *clientv3.Client
// `unprefixedEtcdCli` will never set the etcd namespace prefix by keyspace.
// It is only used in storeMinStartTS and RemoveMinStartTS now.
// It must be used when the etcd path isn't needed to separate by keyspace.
// See keyspace RFC: https://github.com/pingcap/tidb/pull/39685
unprefixedEtcdCli *clientv3.Client
info *ServerInfo
serverInfoPath string
Expand Down

0 comments on commit 0c1cb16

Please sign in to comment.