Browse Source

Merge branch 'master' into mq

pull/5890/head
chrislu 6 months ago
parent
commit
70b31e3a28
  1. 1
      weed/server/filer_grpc_server_sub_meta.go

1
weed/server/filer_grpc_server_sub_meta.go

@ -29,6 +29,7 @@ func (fs *FilerServer) SubscribeMetadata(req *filer_pb.SubscribeMetadataRequest,
if isReplacing { if isReplacing {
fs.filer.MetaAggregator.ListenersCond.Broadcast() // nudges the subscribers that are waiting fs.filer.MetaAggregator.ListenersCond.Broadcast() // nudges the subscribers that are waiting
} else if alreadyKnown { } else if alreadyKnown {
fs.filer.MetaAggregator.ListenersCond.Broadcast() // nudges the subscribers that are waiting
return fmt.Errorf("duplicated subscription detected for client %s id %d", clientName, req.ClientId) return fmt.Errorf("duplicated subscription detected for client %s id %d", clientName, req.ClientId)
} }
defer func() { defer func() {

Loading…
Cancel
Save