mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 12:27:58 +08:00
Merge pull request #3290 from paochiang/fix_dedup_subscribers
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user