mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
change keyword from /machines to /_etcd/machines
This commit is contained in:
parent
04eea356e4
commit
cc428c4e84
@ -134,7 +134,7 @@ func (c *JoinCommand) Apply(raftServer *raft.Server) (interface{}, error) {
|
||||
|
||||
// add machine in etcd storage
|
||||
nodeName := fmt.Sprintf("%s%d", "node", raftServer.CommitIndex())
|
||||
key := path.Join("machines", nodeName)
|
||||
key := path.Join("_etcd/machines", nodeName)
|
||||
value := fmt.Sprintf("%s,%d,%d", c.Hostname, c.RaftPort, c.ClientPort)
|
||||
etcdStore.Set(key, value, time.Unix(0, 0), raftServer.CommitIndex())
|
||||
|
||||
|
@ -8,9 +8,8 @@ import (
|
||||
// keywords for internal useage
|
||||
// Key for string keyword; Value for only checking prefix
|
||||
var keywords = map[string]bool{
|
||||
"/acoounts": true,
|
||||
"/_etcd": true,
|
||||
"/ephemeralNodes": true,
|
||||
"/machines": true,
|
||||
}
|
||||
|
||||
// CheckKeyword will check if the key contains the keyword.
|
||||
|
Loading…
x
Reference in New Issue
Block a user