mirror of https://github.com/status-im/consul.git
acl: stop replication on leadership lost
It seems like this was missing. Previously this was only called by init of ACLs during an upgrade. Now that legacy ACLs are removed, nothing was calling stop. Also remove an unused method from client.
This commit is contained in:
parent
98823e573f
commit
0d0761927a
|
@ -3,7 +3,6 @@ package consul
|
||||||
import (
|
import (
|
||||||
"github.com/hashicorp/consul/acl"
|
"github.com/hashicorp/consul/acl"
|
||||||
"github.com/hashicorp/consul/agent/structs"
|
"github.com/hashicorp/consul/agent/structs"
|
||||||
"github.com/hashicorp/consul/lib/serf"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var clientACLCacheConfig *structs.ACLCachesConfig = &structs.ACLCachesConfig{
|
var clientACLCacheConfig *structs.ACLCachesConfig = &structs.ACLCachesConfig{
|
||||||
|
@ -80,8 +79,3 @@ func (c *Client) ResolveTokenAndDefaultMeta(token string, entMeta *structs.Enter
|
||||||
|
|
||||||
return authz, err
|
return authz, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) updateSerfTags(key, value string) {
|
|
||||||
// Update the LAN serf
|
|
||||||
serf.UpdateTag(c.serf, key, value)
|
|
||||||
}
|
|
||||||
|
|
|
@ -344,6 +344,8 @@ func (s *Server) revokeLeadership() {
|
||||||
|
|
||||||
s.stopConfigReplication()
|
s.stopConfigReplication()
|
||||||
|
|
||||||
|
s.stopACLReplication()
|
||||||
|
|
||||||
s.stopConnectLeader()
|
s.stopConnectLeader()
|
||||||
|
|
||||||
s.stopACLTokenReaping()
|
s.stopACLTokenReaping()
|
||||||
|
|
Loading…
Reference in New Issue