-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
AuthorityTemporaryStore
potential inconsistent access of object state
#394
Comments
I will try fixing as part of #90 as (I believe) that's where the bug manifests itself. |
This is a known issue, because I do not believe the VM issues reads commands for anything besides already published read-only objects. In fact why not simply remove the read operation and replace it with something like get module by ID. Or are we actually reading after writing (I do not think so, but better check). |
#90 will start doing reading after writing. |
Ok, then temp authority needs to be more sophisticated:
|
Hey @awelc , has this been addressed in: |
In
AuthorityTemporaryStore
, we have two fields that contain object state:objects
andwritten
.objects
contains the original content of the objects from the input, whilewritten
contains any mutated object state.Whenever we are trying to read objects, unless it's read-only, we will need to read from
written
first to see if it's there.We should also consider renaming
objects
to something likeoriginal_objects
to avoid confusions.The text was updated successfully, but these errors were encountered: