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

Update delete state(s) functions #7754

Merged
merged 3 commits into from
Nov 9, 2020
Merged

Update delete state(s) functions #7754

merged 3 commits into from
Nov 9, 2020

Conversation

terencechain
Copy link
Member

This PR improves on the design for the delete state functions:

  • Currently DeleteStates put everything under 1 TX, that means it either all works or none of it works
  • For DeleteStates, Instead of doing one big update, it's better to do one at a time
  • This PR refactored DeleteStates to DeleteState without the cursor, and updated DeleteStates to just call DeleteState

@terencechain terencechain requested a review from a team as a code owner November 9, 2020 20:24
@terencechain terencechain self-assigned this Nov 9, 2020
@terencechain terencechain added the Ready For Review A pull request ready for code review label Nov 9, 2020
prestonvanloon
prestonvanloon previously approved these changes Nov 9, 2020
@codecov
Copy link

codecov bot commented Nov 9, 2020

Codecov Report

Merging #7754 (48975e6) into master (d4c9546) will decrease coverage by 0.01%.
The diff coverage is 62.50%.

@@            Coverage Diff             @@
##           master    #7754      +/-   ##
==========================================
- Coverage   62.15%   62.14%   -0.02%     
==========================================
  Files         429      429              
  Lines       30248    30245       -3     
==========================================
- Hits        18802    18797       -5     
- Misses       8521     8522       +1     
- Partials     2925     2926       +1     

Copy link
Contributor

@farazdagi farazdagi left a comment

Choose a reason for hiding this comment

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

lgtm

@terencechain terencechain merged commit be40e1a into master Nov 9, 2020
@delete-merged-branch delete-merged-branch bot deleted the update-delete-states branch November 9, 2020 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants