Skip to content

Commit

Permalink
xdsclient/csds: fix leaked metadata (#5339)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl committed May 9, 2022
1 parent ee67b3d commit 5c46f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xds/internal/xdsclient/pubsub/update.go
Expand Up @@ -232,7 +232,7 @@ func (pb *Pubsub) NewClusters(updates map[string]xdsresource.ClusterUpdateErrTup
// from cache, and also send an resource not found error to indicate
// resource removed.
delete(pb.cdsCache, name)
pb.ldsMD[name] = xdsresource.UpdateMetadata{Status: xdsresource.ServiceStatusNotExist}
pb.cdsMD[name] = xdsresource.UpdateMetadata{Status: xdsresource.ServiceStatusNotExist}
for wi := range pb.cdsWatchers[name] {
wi.resourceNotFound()
}
Expand Down

0 comments on commit 5c46f1a

Please sign in to comment.