-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
libs/db: disallow empty keys #2
Labels
T:enhancement
Type: Enhancement, New feature or request
Comments
Found this commit 4ce8448d7fcf92b040046f894474ce2f7e779b67, but it does not explain why nil keys are OK. |
The SDK does not use empty keys. will see others then we can look at moving forward with this. |
I'm making some breaking changes to the interface shortly, suggest we do this at the same time since there are a few issues with empty keys (notably BoltDB not supporting it, and cLevelDB panics). Any objections? |
erikgrinaker
added a commit
that referenced
this issue
May 18, 2020
Modify batch `Set`, `Delete`, and `Close` to return errors. The main error condition currently is using closed batches, but future ones include databases which implement batches as transactions (e.g. BadgerDB) and rejecting empty keys (#2).
erikgrinaker
added a commit
that referenced
this issue
May 19, 2020
yihuang
added a commit
to yihuang/tm-db
that referenced
this issue
Jan 18, 2023
changelog Signed-off-by: Tomas Tauber <2410580+tomtau@users.noreply.github.com>
faddat
pushed a commit
to faddat/tm-db
that referenced
this issue
Feb 21, 2024
…endermint#2) Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.2.0 to 3.3.1. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v3.2.0...v3.3.1) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
See tendermint/tendermint#3610 (comment)
Reasons to do that:
default
or something else)The text was updated successfully, but these errors were encountered: