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

Add read transactions for leveldb #1266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zenhack
Copy link
Contributor

@zenhack zenhack commented Jun 22, 2019

Note that this branch includes the change from:

https://perkeep-review.googlesource.com/c/perkeep/+/19266

Which says it's been merged, but hasn't hit GitHub (@bradfitz mentioned that the auto-sync had been turned off). Once that lands I'll rebase, but for now only the second commit is relevant.

@googlebot googlebot added the cla: yes Author has submitted the Google CLA. label Jun 22, 2019
@zenhack
Copy link
Contributor Author

zenhack commented Jun 22, 2019

The CI failures look like they're unrelated to this change.

@zenhack
Copy link
Contributor Author

zenhack commented Jun 24, 2019

Rebased.

return nil
}

func getCommon(r leveldb.Reader, readOpts *opt.ReadOptions, key string) (string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

get, readerGet? "Common" is too common.

return string(val), nil
}

func findCommon(r leveldb.Reader, readOpts *opt.ReadOptions, start, end string) sorted.Iterator {
Copy link
Contributor

Choose a reason for hiding this comment

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

find, readerFind? "Common" is too common.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Author has submitted the Google CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants