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

Change graveler iterator interface #1014

Merged
merged 1 commit into from
Dec 8, 2020
Merged

Conversation

itaiad200
Copy link
Contributor

No description provided.

Copy link
Contributor

@guy-har guy-har left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, Thanks

@itaiad200 itaiad200 force-pushed the feature/iterator-phase-2 branch from dd397d0 to af7cc3b Compare December 8, 2020 12:14
@itaiad200 itaiad200 force-pushed the feature/iterator-phase-2 branch from af7cc3b to 127de37 Compare December 8, 2020 12:15
@codecov-io
Copy link

codecov-io commented Dec 8, 2020

Codecov Report

Merging #1014 (127de37) into master (4ce4df1) will increase coverage by 0.00%.
The diff coverage is 59.09%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1014   +/-   ##
=======================================
  Coverage   46.24%   46.24%           
=======================================
  Files         152      152           
  Lines       12308    12305    -3     
=======================================
- Hits         5692     5691    -1     
+ Misses       5893     5892    -1     
+ Partials      723      722    -1     
Impacted Files Coverage Δ
graveler/graveler.go 39.47% <ø> (ø)
graveler/pgiterator.go 87.14% <58.82%> (+0.84%) ⬆️
graveler/staging_iterator.go 77.50% <60.00%> (-3.59%) ⬇️
catalog/mvcc/cataloger_create_repository.go 62.96% <0.00%> (+3.70%) ⬆️

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 4ce4df1...127de37. Read the comment docs.

@itaiad200 itaiad200 merged commit 153bf85 into master Dec 8, 2020
// initPhase turns true when the iterator was created or `SeekGE()` was called.
// initPhase turns false when Next() is called.
// When initPhase is true, Value() should return nil.
initPhase bool
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use the value? it's nil when you initialize, it makes sense to set it to nil when you SeekGE

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.

4 participants