Browse Source
Merge pull request #3290 from paochiang/fix_dedup_subscribers
pull/3293/head
Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
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 |
|
|
|