-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear data from MTRDevice's ClusterStateCache when elements are remov…
…ed. (#34212) * Clear data from MTRDevice's ClusterStateCache when elements are removed. The idea is for that cache to store DataVersions and cluster data sizes, so on resubscribe we send the right data along. But ClusterStateCache itself never removes anything, so if we detect that an endpoint or cluster or attribute has been removed, we need to explicitly remove the relevant bits from the cache. Not doing that can lead to incorrect (so less efficient) DataVersion sorting for the case when an attribute was removed, of to unnecessary DataVersions being included in a subscribe (and potentially preventing useful ones from being included) when a cluster or endpoint was removed. * Address review comments.
- Loading branch information
1 parent
a5d8f62
commit 707e431
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters