Browse Source

add subscriber clientId if it is the first time

pull/3290/head
liubaojiang 3 years ago
parent
commit
4e83e92156
  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