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

ValuePlug : Stop getValueInternal() ignoring precomputedHash #5522

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

johnhaddon
Copy link
Member

This fixes a bug I introduced in #5493. It was only picked up when merging through to main, where a newly robustified unit test picked it up straight away. This PR cherry-picks the improved tests back to 1.3_maintenance and fixes the bug too.

Our hash caching is now so aggressive that even if the precomputed hash was ignored, we'd still be pulling the hash out of the cache. So we now clear the cache to be sure that if the precomputed hash was ignored, that would trigger another call to `ComputeNode::hash()`.
@danieldresser-ie
Copy link
Contributor

LGTM

@johnhaddon johnhaddon merged commit 8a6c1bd into GafferHQ:1.3_maintenance Nov 2, 2023
4 checks passed
@johnhaddon johnhaddon deleted the precomputedHashFix branch November 8, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants