mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: add cluster id check for hashKVHandler
Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
This commit is contained in:
@@ -324,6 +324,14 @@ func WithCorruptCheckTime(time time.Duration) EPClusterOption {
|
||||
return func(c *EtcdProcessClusterConfig) { c.CorruptCheckTime = time }
|
||||
}
|
||||
|
||||
func WithInitialClusterToken(token string) EPClusterOption {
|
||||
return func(c *EtcdProcessClusterConfig) { c.InitialToken = token }
|
||||
}
|
||||
|
||||
func WithInitialCorruptCheck(enabled bool) EPClusterOption {
|
||||
return func(c *EtcdProcessClusterConfig) { c.InitialCorruptCheck = enabled }
|
||||
}
|
||||
|
||||
func WithCompactHashCheckEnabled(enabled bool) EPClusterOption {
|
||||
return func(c *EtcdProcessClusterConfig) { c.CompactHashCheckEnabled = enabled }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user