-
Notifications
You must be signed in to change notification settings - Fork 137
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
memdb: API cleanups and improvements #56
Conversation
mem_db.go
Outdated
return newMemDBIterator(db.btree, start, end, true), nil | ||
} | ||
|
||
//---------------------------------------- | ||
// Iterator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've been talking for a long time about getting rid of these ascii separators and instead putting things in their own files. Do you want to do that while you're in here cleaning things up? (Could also go in a follow up PR, since it might create a lot of noise in this one.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I split the iterator and batch into separate files, but kept them in the root directory since using a separate directory would break the API quite severely. I also renamed files from e.g. mem_db_iterator.go
to memdb_iterator.go
.
Let me know if you think this is fine, and I'll merge this and submit a PR that does the same for the other backends.
Nice. Happy to see an unused DB removed! |
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com>
4752398
to
ec62470
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com>
…rmint#56) Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.53.0 to 1.55.0. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.53.0...v1.55.0) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fixes #54, fixes #55. Somewhat breaking, since we're removing exported methods, but these are not likely to be widely used.
RWMutex
instead of aMutex
in MemDBmockDB
since it is not really usedBranched off of #53, should be rebased onto
master
before merging.