diff --git a/weed/server/filer_grpc_server_sub_meta.go b/weed/server/filer_grpc_server_sub_meta.go index da710234b..745379e7c 100644 --- a/weed/server/filer_grpc_server_sub_meta.go +++ b/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