Skip to content

sourcepolicy: concurrency and cache fixes - #6342

Merged
tonistiigi merged 2 commits into
moby:masterfrom
tonistiigi:sourcepolicy-fixes
Nov 11, 2025
Merged

tonistiigi merged 2 commits into
moby:masterfrom
tonistiigi:sourcepolicy-fixes

Conversation

@tonistiigi

Copy link
Copy Markdown
Member

SelectorCache only stores the identifier and type. Constraints need to
be passed directly outside of cache.

Connecurrent writes became possible when policy evaluation
was made to run in parallel recently.

@cpuguy83

cpuguy83 commented Nov 7, 2025

Copy link
Copy Markdown
Member

sourcepolicy/matcher.go:10:44: unused parameter: constraints

SelectorCache only stores the identifier and type. Constraints need to
be passed directly outside of cache.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Connecurrent writes became possible when policy evaluation
was made to run in parallel recently.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants