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

Clear fileName of index objects when hasName triple is removed #288

Merged
merged 11 commits into from
Feb 5, 2025

Conversation

ggVGc
Copy link
Contributor

@ggVGc ggVGc commented Feb 3, 2025

This fixes a minor issue which was found when enabling the -Wvalue-discard option.
In short, currently if an object has a hasName association which is later removed, the value is not actually updated in the in-memory index. This would be corrected upon next service restart when the the IndexData instance is rebuilt (since the bug is only in the index, not the actual triple store).

The fix probably has negligible real-world effects, but I used it as a way to get more familiar with the workings of the IndexData code.
In order to reduce the surface area of the IndexData interface, I also added a trait StatementSource including the subset of TripleStoreConnection relating only to reading existing statements.

@ggVGc ggVGc force-pushed the valter/fix-index-delete-hasName branch from b3e01b0 to 2c0302c Compare February 3, 2025 15:19
@ggVGc ggVGc changed the title Clear fName in index when triple is removed Clear fName in index when hasName triple is removed Feb 3, 2025
@ggVGc ggVGc changed the title Clear fName in index when hasName triple is removed Clear fileName of index objects when hasName triple is removed Feb 3, 2025
@ggVGc ggVGc force-pushed the valter/fix-index-delete-hasName branch from 55a73af to 3392d94 Compare February 5, 2025 09:03
@ggVGc ggVGc merged commit f353b6e into master Feb 5, 2025
1 check passed
@ggVGc ggVGc deleted the valter/fix-index-delete-hasName branch February 5, 2025 11:45
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.

3 participants