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

storage/inmem: Create path if does not exist during truncate #4853

Merged
merged 1 commit into from Jul 7, 2022

Conversation

ashutosh-narkar
Copy link
Member

A data write performed at a non-root nonexistent path
in the im-memory store during a trucnate op would cause a
storage not found error. This change creates a path if one
does not exist before writing data.

Signed-off-by: Ashutosh Narkar anarkar4387@gmail.com

A data write performed at a non-root nonexistent path
in the im-memory store during a trucnate op would cause a
storage not found error. This change creates a path if one
does not exist before writing data.

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
@tsandall tsandall requested a review from srenatus July 7, 2022 02:51
@srenatus srenatus merged commit cfa5c6e into open-policy-agent:main Jul 7, 2022
srenatus pushed a commit to srenatus/opa that referenced this pull request Jul 7, 2022
…licy-agent#4853)

A data write performed at a non-root nonexistent path
in the im-memory store during a trucnate op would cause a
storage not found error. This change creates a path if one
does not exist before writing data.

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
ashutosh-narkar added a commit to ashutosh-narkar/opa that referenced this pull request Jul 7, 2022
…licy-agent#4853)

A data write performed at a non-root nonexistent path
in the im-memory store during a trucnate op would cause a
storage not found error. This change creates a path if one
does not exist before writing data.

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
(cherry picked from commit cfa5c6e)
srenatus pushed a commit that referenced this pull request Jul 8, 2022
A data write performed at a non-root nonexistent path
in the im-memory store during a trucnate op would cause a
storage not found error. This change creates a path if one
does not exist before writing data.

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
(cherry picked from commit cfa5c6e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants