Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFE-4244: Added the function name to the result cache key (3.21.x) #5322

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

larsewi
Copy link
Contributor

@larsewi larsewi commented Sep 14, 2023

The function cache only used the args values, which in some cases could
lead to mixing results from different functions with the same arguments.

Ticket: CFE-4244
Changelog: Cashed policy function results now take into account number of arguments and function name.
Signed-off-by: Lars Erik Wik [email protected]
Co-authored-by: Alexis Mousset [email protected]
(cherry picked from commit 29e60a9)
Signed-off-by: Lars Erik Wik [email protected]

Backported from #5317

The function cache only used the args values, which in some cases could
lead to mixing results from different functions with the same arguments.

Ticket: CFE-4244
Changelog: Cashed policy function results now take into account number of arguments and function name.
Signed-off-by: Lars Erik Wik <[email protected]>
Co-authored-by: Alexis Mousset <[email protected]>
(cherry picked from commit 29e60a9)
Signed-off-by: Lars Erik Wik <[email protected]>
@larsewi
Copy link
Contributor Author

larsewi commented Sep 14, 2023

@cf-bottom Jenkins please :)

@cf-bottom
Copy link

Copy link
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite a nasty bug.

libpromises/eval_context.c Outdated Show resolved Hide resolved
Two reasons for this:
 1. CONTRIBUTING.md says to do this at the top
 2. the `ctx` argument was actually used before the assert

Ticket: None
Changelog: None
Signed-off-by: Lars Erik Wik <[email protected]>
(cherry picked from commit eec9776)
@larsewi larsewi requested a review from vpodzime September 14, 2023 13:03
@larsewi larsewi merged commit 2d71497 into cfengine:3.21.x Sep 15, 2023
7 checks passed
@larsewi larsewi deleted the rudder-3.21.x branch December 3, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants