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

batch: return errors for all operations #96

Merged
merged 2 commits into from
May 18, 2020
Merged

Conversation

erikgrinaker
Copy link
Contributor

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 erikgrinaker added the T:breaking Type: Breaking label May 15, 2020
@erikgrinaker erikgrinaker requested a review from tessr as a code owner May 15, 2020 14:11
@erikgrinaker erikgrinaker self-assigned this May 15, 2020
@tac0turtle
Copy link
Contributor

Lint is failing due to errors in tests, we can turn off linting in tests if we would like

@erikgrinaker
Copy link
Contributor Author

Lint is failing due to errors in tests, we can turn off linting in tests if we would like

That's fine, I just couldn't find the actual lint error. Will fix shortly.

@erikgrinaker erikgrinaker merged commit 442ebe1 into master May 18, 2020
@tac0turtle tac0turtle deleted the erik/batch-error branch May 18, 2020 12:18
nddeluca pushed a commit to Kava-Labs/tm-db that referenced this pull request Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T:breaking Type: Breaking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants