Browse Source

Merge pull request #3290 from paochiang/fix_dedup_subscribers

pull/3293/head
Chris Lu 3 years ago
committed by GitHub
parent
commit
b9518e06f5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      weed/server/filer_grpc_server_sub_meta.go

3
weed/server/filer_grpc_server_sub_meta.go

@ -263,6 +263,9 @@ func (fs *FilerServer) addClient(clientType string, clientAddress string, client
if clientId != 0 {
fs.knownListenersLock.Lock()
_, alreadyKnown = fs.knownListeners[clientId]
if !alreadyKnown {
fs.knownListeners[clientId] = struct{}{}
}
fs.knownListenersLock.Unlock()
}
return

Loading…
Cancel
Save