Close and flush perf standby conns/cache when sealing. (#7183)
This commit is contained in:
parent
d2a5a3035c
commit
bea627f410
|
@ -111,6 +111,8 @@ func (c *Core) invalidateSentinelPolicy(PolicyType, string) {}
|
||||||
|
|
||||||
func (c *Core) removePerfStandbySecondary(context.Context, string) {}
|
func (c *Core) removePerfStandbySecondary(context.Context, string) {}
|
||||||
|
|
||||||
|
func (c *Core) removeAllPerfStandbySecondaries() {}
|
||||||
|
|
||||||
func (c *Core) perfStandbyClusterHandler() (*replication.Cluster, *cache.Cache, chan struct{}, error) {
|
func (c *Core) perfStandbyClusterHandler() (*replication.Cluster, *cache.Cache, chan struct{}, error) {
|
||||||
return nil, cache.New(2*cluster.HeartbeatInterval, 1*time.Second), make(chan struct{}), nil
|
return nil, cache.New(2*cluster.HeartbeatInterval, 1*time.Second), make(chan struct{}), nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -214,6 +214,7 @@ func (c *Core) stopForwarding() {
|
||||||
c.clusterListener.StopHandler(consts.RequestForwardingALPN)
|
c.clusterListener.StopHandler(consts.RequestForwardingALPN)
|
||||||
c.clusterListener.StopHandler(consts.PerfStandbyALPN)
|
c.clusterListener.StopHandler(consts.PerfStandbyALPN)
|
||||||
}
|
}
|
||||||
|
c.removeAllPerfStandbySecondaries()
|
||||||
}
|
}
|
||||||
|
|
||||||
// refreshRequestForwardingConnection ensures that the client/transport are
|
// refreshRequestForwardingConnection ensures that the client/transport are
|
||||||
|
|
Loading…
Reference in a new issue