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 authored and dfawley committed May 13, 2022
1 parent 1303098 commit 10b610c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xds/internal/xdsclient/pubsub/update.go
Original file line number Diff line number Diff line change
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 10b610c

Please sign in to comment.