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

siva: location registry + transactioner #8

Merged
merged 4 commits into from
Feb 20, 2019

Conversation

mcarmonaa
Copy link
Collaborator

This PR joins the work done in #5 and #7 so maybe if this go ahead those PR should be closed and superseded by this one.

The transactioner coordinates transactions and write operations so there's no need to add mutexes to the Locations.

mcarmonaa and others added 4 commits February 19, 2019 08:04
Signed-off-by: Manuel Carmona <manu.carmona90@gmail.com>
It's cache size is hardcoded for now until a library options is
implemented.

Transactions should call startTransaction and endTransaction to make
sure that subsequent Location calls return the correct location.

Signed-off-by: Javi Fontan <jfontan@gmail.com>
Now transactions and registry cache size can be configured with
LibraryOptions struct. Also added tests for location registry.

Signed-off-by: Javi Fontan <jfontan@gmail.com>
…ransactional and write operations.

Signed-off-by: Manuel Carmona <manu.carmona90@gmail.com>
@codecov-io
Copy link

codecov-io commented Feb 19, 2019

Codecov Report

Merging #8 into siva will increase coverage by 2.01%.
The diff coverage is 82.35%.

Impacted file tree graph

@@            Coverage Diff             @@
##             siva       #8      +/-   ##
==========================================
+ Coverage   57.85%   59.87%   +2.01%     
==========================================
  Files          11       13       +2     
  Lines         700      770      +70     
==========================================
+ Hits          405      461      +56     
- Misses        228      236       +8     
- Partials       67       73       +6
Impacted Files Coverage Δ
siva/iterator.go 37.5% <ø> (ø) ⬆️
siva/checkpoint.go 65.07% <100%> (ø) ⬆️
siva/repository.go 64.7% <33.33%> (-8.63%) ⬇️
siva/location.go 51.61% <80%> (-0.77%) ⬇️
siva/location_registry.go 84.61% <84.61%> (ø)
siva/library.go 65.88% <85.71%> (+2.36%) ⬆️
siva/transactioner.go 88.88% <88.88%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ed277b...704672d. Read the comment docs.

@mcarmonaa mcarmonaa merged commit ee67967 into jfontan:siva Feb 20, 2019
@mcarmonaa mcarmonaa deleted the siva-loc-registry branch February 20, 2019 10:11
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