Commit 17683d07 authored by johncming's avatar johncming Committed by Brian Brazil
Browse files

discovery: fix bug that use rlock for read. (#5928)

Signed-off-by: default avatarjohncming <>
parent 7d159b2f
......@@ -304,8 +304,8 @@ func (m *Manager) updateGroup(poolKey poolKey, tgs []*targetgroup.Group) {
func (m *Manager) allGroups() map[string][]*targetgroup.Group {
defer m.mtx.Unlock()
defer m.mtx.RUnlock()
tSets := map[string][]*targetgroup.Group{}
for pkey, tsets := range m.targets {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment